You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application-test.js 627B

1234567891011121314151617181920212223
  1. import { module, test } from 'qunit';
  2. import { setupTest } from 'ember-qunit';
  3. module('Unit | Serializer | application', function(hooks) {
  4. setupTest(hooks);
  5. // Replace this with your real tests.
  6. test('it exists', function(assert) {
  7. let store = this.owner.lookup('service:store');
  8. let serializer = store.serializerFor('produkt');
  9. assert.ok(serializer);
  10. });
  11. test('it serializes records', function(assert) {
  12. let store = this.owner.lookup('service:store');
  13. let record = store.createRecord('produkt', {});
  14. let serializedRecord = record.serialize();
  15. assert.ok(serializedRecord);
  16. });
  17. });