diff --git a/tests/integration/components/entities-table-test.js b/tests/integration/components/entities-table-test.js new file mode 100644 index 0000000..686dc9f --- /dev/null +++ b/tests/integration/components/entities-table-test.js @@ -0,0 +1,26 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('entities-table', 'Integration | Component | entities table', { + integration: true +}); + +test('it renders', function(assert) { + assert.expect(2); + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{entities-table}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#entities-table}} + template block text + {{/entities-table}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/integration/components/entity-table-row-test.js b/tests/integration/components/entity-table-row-test.js new file mode 100644 index 0000000..3e93765 --- /dev/null +++ b/tests/integration/components/entity-table-row-test.js @@ -0,0 +1,26 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('entity-table-row', 'Integration | Component | entity table row', { + integration: true +}); + +test('it renders', function(assert) { + assert.expect(2); + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{entity-table-row}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#entity-table-row}} + template block text + {{/entity-table-row}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/integration/components/entity-title-test.js b/tests/integration/components/entity-title-test.js new file mode 100644 index 0000000..3615905 --- /dev/null +++ b/tests/integration/components/entity-title-test.js @@ -0,0 +1,26 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('entity-title', 'Integration | Component | entity title', { + integration: true +}); + +test('it renders', function(assert) { + assert.expect(2); + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{entity-title}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#entity-title}} + template block text + {{/entity-title}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/integration/components/line-chart-test.js b/tests/integration/components/line-chart-test.js new file mode 100644 index 0000000..dd02ac5 --- /dev/null +++ b/tests/integration/components/line-chart-test.js @@ -0,0 +1,26 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('line-chart', 'Integration | Component | line chart', { + integration: true +}); + +test('it renders', function(assert) { + assert.expect(2); + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{line-chart}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#line-chart}} + template block text + {{/line-chart}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/integration/components/properties-table-test.js b/tests/integration/components/properties-table-test.js new file mode 100644 index 0000000..9ebc76c --- /dev/null +++ b/tests/integration/components/properties-table-test.js @@ -0,0 +1,26 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('properties-table', 'Integration | Component | properties table', { + integration: true +}); + +test('it renders', function(assert) { + assert.expect(2); + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{properties-table}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#properties-table}} + template block text + {{/properties-table}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/unit/adapters/application-test.js b/tests/unit/adapters/application-test.js new file mode 100644 index 0000000..aeed71b --- /dev/null +++ b/tests/unit/adapters/application-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('adapter:application', 'Unit | Adapter | application', { + // Specify the other units that are required for this test. + // needs: ['serializer:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var adapter = this.subject(); + assert.ok(adapter); +}); diff --git a/tests/unit/controllers/entity-test.js b/tests/unit/controllers/entity-test.js new file mode 100644 index 0000000..c85c6d4 --- /dev/null +++ b/tests/unit/controllers/entity-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('controller:entity', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var controller = this.subject(); + assert.ok(controller); +}); diff --git a/tests/unit/controllers/lab-mashup/entity-test.js b/tests/unit/controllers/lab-mashup/entity-test.js new file mode 100644 index 0000000..47fab2e --- /dev/null +++ b/tests/unit/controllers/lab-mashup/entity-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('controller:lab-mashup/entity', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var controller = this.subject(); + assert.ok(controller); +}); diff --git a/tests/unit/controllers/lab-mashup/entity/property-test.js b/tests/unit/controllers/lab-mashup/entity/property-test.js new file mode 100644 index 0000000..ea2cd1b --- /dev/null +++ b/tests/unit/controllers/lab-mashup/entity/property-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('controller:lab-mashup/entity/property', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var controller = this.subject(); + assert.ok(controller); +}); diff --git a/tests/unit/controllers/property-test.js b/tests/unit/controllers/property-test.js new file mode 100644 index 0000000..974eec7 --- /dev/null +++ b/tests/unit/controllers/property-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('controller:property', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var controller = this.subject(); + assert.ok(controller); +}); diff --git a/tests/unit/models/category-test.js b/tests/unit/models/category-test.js new file mode 100644 index 0000000..b4f8660 --- /dev/null +++ b/tests/unit/models/category-test.js @@ -0,0 +1,12 @@ +import { moduleForModel, test } from 'ember-qunit'; + +moduleForModel('category', 'Unit | Model | category', { + // Specify the other units that are required for this test. + needs: [] +}); + +test('it exists', function(assert) { + var model = this.subject(); + // var store = this.store(); + assert.ok(!!model); +}); diff --git a/tests/unit/models/entity-test.js b/tests/unit/models/entity-test.js new file mode 100644 index 0000000..6387111 --- /dev/null +++ b/tests/unit/models/entity-test.js @@ -0,0 +1,12 @@ +import { moduleForModel, test } from 'ember-qunit'; + +moduleForModel('entity', 'Unit | Model | entity', { + // Specify the other units that are required for this test. + needs: [] +}); + +test('it exists', function(assert) { + var model = this.subject(); + // var store = this.store(); + assert.ok(!!model); +}); diff --git a/tests/unit/models/property-test.js b/tests/unit/models/property-test.js new file mode 100644 index 0000000..9ef362d --- /dev/null +++ b/tests/unit/models/property-test.js @@ -0,0 +1,12 @@ +import { moduleForModel, test } from 'ember-qunit'; + +moduleForModel('property', 'Unit | Model | property', { + // Specify the other units that are required for this test. + needs: [] +}); + +test('it exists', function(assert) { + var model = this.subject(); + // var store = this.store(); + assert.ok(!!model); +}); diff --git a/tests/unit/routes/lab-mashup/index-test.js b/tests/unit/routes/lab-mashup/index-test.js new file mode 100644 index 0000000..7399536 --- /dev/null +++ b/tests/unit/routes/lab-mashup/index-test.js @@ -0,0 +1,11 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('route:lab-mashup/index', 'Unit | Route | lab mashup/index', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + var route = this.subject(); + assert.ok(route); +}); diff --git a/tests/unit/serializers/application-test.js b/tests/unit/serializers/application-test.js new file mode 100644 index 0000000..1aaa9ba --- /dev/null +++ b/tests/unit/serializers/application-test.js @@ -0,0 +1,15 @@ +import { moduleForModel, test } from 'ember-qunit'; + +moduleForModel('application', 'Unit | Serializer | application', { + // Specify the other units that are required for this test. + needs: ['serializer:application'] +}); + +// Replace this with your real tests. +test('it serializes records', function(assert) { + var record = this.subject(); + + var serializedRecord = record.serialize(); + + assert.ok(serializedRecord); +}); diff --git a/tests/unit/transforms/property-test.js b/tests/unit/transforms/property-test.js new file mode 100644 index 0000000..4723034 --- /dev/null +++ b/tests/unit/transforms/property-test.js @@ -0,0 +1,12 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('transform:property', 'Unit | Transform | property', { + // Specify the other units that are required for this test. + // needs: ['serializer:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var transform = this.subject(); + assert.ok(transform); +}); diff --git a/tests/unit/views/action-checkbox-test.js b/tests/unit/views/action-checkbox-test.js new file mode 100644 index 0000000..8ca180c --- /dev/null +++ b/tests/unit/views/action-checkbox-test.js @@ -0,0 +1,9 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('view:action-checkbox', 'Unit | View | action checkbox'); + +// Replace this with your real tests. +test('it exists', function(assert) { + var view = this.subject(); + assert.ok(view); +}); diff --git a/tests/unit/views/chart-test.js b/tests/unit/views/chart-test.js new file mode 100644 index 0000000..3d42f3a --- /dev/null +++ b/tests/unit/views/chart-test.js @@ -0,0 +1,9 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('view:chart', 'Unit | View | chart'); + +// Replace this with your real tests. +test('it exists', function(assert) { + var view = this.subject(); + assert.ok(view); +});