author | ymh <ymh.work@gmail.com> |
Fri, 02 Dec 2016 00:22:31 +0100 | |
changeset 454 | 710a2ae08a74 |
permissions | -rw-r--r-- |
454
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import { moduleForComponent, test } from 'ember-qunit'; |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
import hbs from 'htmlbars-inline-precompile'; |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
moduleForComponent('transcript-section-component', 'Integration | Component | transcript section component', { |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
integration: true |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
}); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
test('it renders', function(assert) { |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
// Set any properties with this.set('myProperty', 'value'); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
// Handle any actions with this.on('myAction', function(val) { ... }); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
this.render(hbs`{{transcript-section-component}}`); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
assert.equal(this.$().text().trim(), ''); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
// Template block usage: |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
this.render(hbs` |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
{{#transcript-section-component}} |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
template block text |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
{{/transcript-section-component}} |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
`); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
assert.equal(this.$().text().trim(), 'template block text'); |
710a2ae08a74
rework transcript component to correct various bugs
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
}); |