You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/helpers/test.mdx

17 lines
448 B

# test
`{{and (test "is something model" item=item) (test "can read model")}}` is used
to perform a test on based on a type of model, almost the same as `ember-can`
and the `is` helper, but is more generic and extensible whilst reading nicely:
```hbs
{{#if (and (test "is crd intention" item=item) (test "can read intentions"))}}
I'm a CRD intention
{{/if}}
```
Consider using this instead of the `can` and `is` helpers, as its more generic.