Files
threshold-ui/addons/api/tests/unit/models/host-test.js
T
Carlos Alcaide 6159378a52 style: 💄 Clean default tests comments
Clean the default test comment added when creating a new test file with
ember-cli.
2021-05-21 08:19:48 -07:00

24 lines
625 B
JavaScript

import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | host', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host', {});
assert.ok(model);
});
test('it contains attributes', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host', {
type: 'static',
attributes: {
address: '127.0.0.1',
},
});
assert.equal(model.attributes.address, '127.0.0.1');
});
});