1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Add tests, not used yet anywhere

This commit is contained in:
Markus Grigull 2015-10-13 10:33:36 +02:00
parent b7c8a47611
commit 67c8c71726
18 changed files with 282 additions and 0 deletions

View file

@ -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');
});

View file

@ -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');
});

View file

@ -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');
});

View file

@ -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');
});

View file

@ -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');
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});

View file

@ -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);
});