a85f5fae35
no issue - fix lint errors in lib/gh-koenig - fix ghost:base eslint errors - update ember plugin refs, remove ember-suave plugin refs - remove old jshint refs - add `lint:js` script - switch to `eslint-plugin-ghost` extending `plugin:ghost/ember`
32 lines
894 B
JavaScript
32 lines
894 B
JavaScript
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupModelTest} from 'ember-mocha';
|
|
|
|
describe('Unit: Serializer: user', function () {
|
|
setupModelTest('user', {
|
|
// Specify the other units that are required for this test.
|
|
needs: [
|
|
'model:role',
|
|
'service:ajax',
|
|
'service:config',
|
|
'service:ghostPaths',
|
|
'service:notifications',
|
|
'service:session',
|
|
'transform:facebook-url-user',
|
|
'transform:json-string',
|
|
'transform:moment-utc',
|
|
'transform:raw',
|
|
'transform:twitter-url-user'
|
|
]
|
|
});
|
|
|
|
// Replace this with your real tests.
|
|
it('serializes records', function () {
|
|
let record = this.subject();
|
|
|
|
let serializedRecord = record.serialize();
|
|
|
|
expect(serializedRecord).to.be.ok;
|
|
});
|
|
});
|