WIP
This commit is contained in:
parent
8309486a8a
commit
825b5b0d89
8 changed files with 110 additions and 0 deletions
25
tests/integration/components/ccdb-pagination-test.js
Normal file
25
tests/integration/components/ccdb-pagination-test.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { moduleForComponent, test } from 'ember-qunit';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
moduleForComponent('ccdb-pagination', 'Integration | Component | ccdb pagination', {
|
||||
integration: true
|
||||
});
|
||||
|
||||
test('it renders', function(assert) {
|
||||
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
|
||||
this.render(hbs`{{ccdb-pagination}}`);
|
||||
|
||||
assert.equal(this.$().text().trim(), '');
|
||||
|
||||
// Template block usage:
|
||||
this.render(hbs`
|
||||
{{#ccdb-pagination}}
|
||||
template block text
|
||||
{{/ccdb-pagination}}
|
||||
`);
|
||||
|
||||
assert.equal(this.$().text().trim(), 'template block text');
|
||||
});
|
25
tests/integration/components/filter-collections-test.js
Normal file
25
tests/integration/components/filter-collections-test.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { moduleForComponent, test } from 'ember-qunit';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
moduleForComponent('filter-collections', 'Integration | Component | filter collections', {
|
||||
integration: true
|
||||
});
|
||||
|
||||
test('it renders', function(assert) {
|
||||
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
|
||||
this.render(hbs`{{filter-collections}}`);
|
||||
|
||||
assert.equal(this.$().text().trim(), '');
|
||||
|
||||
// Template block usage:
|
||||
this.render(hbs`
|
||||
{{#filter-collections}}
|
||||
template block text
|
||||
{{/filter-collections}}
|
||||
`);
|
||||
|
||||
assert.equal(this.$().text().trim(), 'template block text');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue