-
-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathdasherize-test.js
More file actions
21 lines (17 loc) · 712 Bytes
/
dasherize-test.js
File metadata and controls
21 lines (17 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Helper | dasherize', function (hooks) {
setupRenderingTest(hooks);
/**
* This doesn't need comprehensive tests for the output of the dasherzie function
* since it's just using @ember/string under the hood. This is just a smoke test
* to make sure it's hooked up correctly
*/
test('it renders', async function (assert) {
this.set('inputValue', 'Something Awesome');
await render(hbs`{{dasherize this.inputValue}}`);
assert.dom(this.element).hasText('something-awesome');
});
});