github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/unit/serializers/coordinate-test.js (about)

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