Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/gossi/ember-command. Integrate your Business Logic with Ember gossi.github.io/ember-command
Something went wrong. Try again.
123456789101112131415161718192021222324import { TestContext } from '@ember/test-helpers';import { setupTest } from 'ember-qunit';import { module, test } from 'qunit';
import { arrangeCommand } from 'ember-command/test-support';
import TaskCommand from './task-command';
module('Integration | Command | Task', function (hooks) { setupTest(hooks);
test('it waits for change', async function (this: TestContext, assert) { const bag = { carry: false }; assert.notOk(bag.carry); const cmd = arrangeCommand(new TaskCommand(bag));
await cmd.execute();
assert.ok(bag.carry); });});