Skip to content

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

ParameterTypeDescription
commandableCommandable | Commandable[]The commandable(s)

Returns

CommandInstance

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.