ember-command / test-support / arrangeCommandInstance
Function: arrangeCommandInstance()
ts
function arrangeCommandInstance(commandable): CommandInstance
Use this to prepare a command for a rendering test putting that command into a component that accepts one.
Parameters
Parameter | Type | Description |
---|---|---|
commandable | Commandable | Commandable [] | The commandable(s) |
Returns
the command instance
Example
ts
this.command = arrangeCommandInstance(new FooBarCommand());
await render(hbs``<CommandElement @command={{this.command}}/>` `);
Source
ember-command/declarations/test-support/index.d.ts:16
Generated using TypeDoc and typedoc-plugin-markdown.