Files
threshold-ui/addons/api/tests/unit/serializers/host-test.js
T

22 lines
577 B
JavaScript
Raw Normal View History

import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
2021-03-04 15:47:38 -05:00
module('Unit | Serializer | host', function (hooks) {
setupTest(hooks);
2021-03-04 15:47:38 -05:00
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let serializer = store.serializerFor('host');
assert.ok(serializer);
});
2021-03-04 15:47:38 -05:00
test('it serializes records', function (assert) {
let store = this.owner.lookup('service:store');
let record = store.createRecord('host', {});
let serializedRecord = record.serialize();
assert.ok(serializedRecord);
});
});