author | ymh <ymh.work@gmail.com> |
Sun, 27 Nov 2016 15:12:30 +0100 | |
changeset 447 | 38d5789e30d0 |
permissions | -rw-r--r-- |
447
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import { moduleForComponent, test } from 'ember-qunit'; |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
import hbs from 'htmlbars-inline-precompile'; |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
moduleForComponent('notice-location-component', 'Integration | Component | notice location component', { |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
integration: true |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
}); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
test('it renders', function(assert) { |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
// Set any properties with this.set('myProperty', 'value'); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
// Handle any actions with this.on('myAction', function(val) { ... }); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
this.render(hbs`{{notice-location-component}}`); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
assert.equal(this.$().text().trim(), ''); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
// Template block usage: |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
this.render(hbs` |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
{{#notice-location-component}} |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
template block text |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
{{/notice-location-component}} |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
`); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
assert.equal(this.$().text().trim(), 'template block text'); |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
}); |