Tests :) default tests but... tests

This commit is contained in:
Seyi Adebajo 2017-03-24 21:33:46 -07:00 committed by Mars Lan
parent 5e28cd5e6d
commit 295f5f7043
22 changed files with 465 additions and 0 deletions

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-schema-table', 'Integration | Component | dataset schema table', {
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`{{dataset-schema-table}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-schema-table}}
template block text
{{/dataset-schema-table}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-body', 'Integration | Component | dataset table body', {
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`{{dataset-table-body}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-body}}
template block text
{{/dataset-table-body}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-cell', 'Integration | Component | dataset table cell', {
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`{{dataset-table-cell}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-cell}}
template block text
{{/dataset-table-cell}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-column', 'Integration | Component | dataset table column', {
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`{{dataset-table-column}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-column}}
template block text
{{/dataset-table-column}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-footer', 'Integration | Component | dataset table footer', {
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`{{dataset-table-footer}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-footer}}
template block text
{{/dataset-table-footer}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-header', 'Integration | Component | dataset table header', {
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`{{dataset-table-header}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-header}}
template block text
{{/dataset-table-header}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-pager', 'Integration | Component | dataset table pager', {
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`{{dataset-table-pager}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-pager}}
template block text
{{/dataset-table-pager}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table-row', 'Integration | Component | dataset table row', {
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`{{dataset-table-row}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table-row}}
template block text
{{/dataset-table-row}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dataset-table', 'Integration | Component | dataset table', {
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`{{dataset-table}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#dataset-table}}
template block text
{{/dataset-table}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('hero-container', 'Integration | Component | hero container', {
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`{{hero-container}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#hero-container}}
template block text
{{/hero-container}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('radio-button-composer', 'Integration | Component | radio button composer', {
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`{{radio-button-composer}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#radio-button-composer}}
template block text
{{/radio-button-composer}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('search/checkbox-group', 'Integration | Component | search/checkbox group', {
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`{{search/checkbox-group}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#search/checkbox-group}}
template block text
{{/search/checkbox-group}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('search/daterange-selection', 'Integration | Component | search/daterange selection', {
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`{{search/daterange-selection}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#search/daterange-selection}}
template block text
{{/search/daterange-selection}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('search/dropdown-selection', 'Integration | Component | search/dropdown selection', {
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`{{search/dropdown-selection}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#search/dropdown-selection}}
template block text
{{/search/dropdown-selection}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('search/filter-rail', 'Integration | Component | search/filter rail', {
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`{{search/filter-rail}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#search/filter-rail}}
template block text
{{/search/filter-rail}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('search/radio-group', 'Integration | Component | search/radio group', {
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`{{search/radio-group}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#search/radio-group}}
template block text
{{/search/radio-group}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});

View File

@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:help/feedback', 'Unit | Route | help/feedback', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});

View File

@ -0,0 +1,12 @@
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:search-keywords', 'Unit | Service | search keywords', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
assert.ok(service);
});

View File

@ -0,0 +1,12 @@
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:search', 'Unit | Service | search', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
assert.ok(service);
});

View File

@ -0,0 +1,10 @@
import buildUrl from 'wherehows-web/utils/build-url';
import { module, test } from 'qunit';
module('Unit | Utility | build url');
// Replace this with your real tests.
test('it works', function(assert) {
let result = buildUrl();
assert.ok(result);
});

View File

@ -0,0 +1,10 @@
import encodeDecodeURIComponentWithSpace from 'wherehows-web/utils/encode-decode-uri-component-with-space';
import { module, test } from 'qunit';
module('Unit | Utility | encode decode uri component with space');
// Replace this with your real tests.
test('it works', function(assert) {
let result = encodeDecodeURIComponentWithSpace();
assert.ok(result);
});

View File

@ -0,0 +1,10 @@
import validatorsEmail from 'wherehows-web/utils/validators/email';
import { module, test } from 'qunit';
module('Unit | Utility | validators/email');
// Replace this with your real tests.
test('it works', function(assert) {
let result = validatorsEmail();
assert.ok(result);
});