2016-06-14 11:11:59 +03:00
|
|
|
/* jshint expr:true */
|
2016-11-14 16:16:51 +03:00
|
|
|
import {expect} from 'chai';
|
2016-11-24 01:50:57 +03:00
|
|
|
import {describe, it} from 'mocha';
|
|
|
|
import {setupModelTest} from 'ember-mocha';
|
2016-06-14 11:11:59 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
describe('Unit:Serializer: setting', function() {
|
|
|
|
setupModelTest('setting', {
|
2016-06-14 11:11:59 +03:00
|
|
|
// Specify the other units that are required for this test.
|
|
|
|
needs: [
|
|
|
|
'transform:moment-utc',
|
|
|
|
'transform:facebook-url-user',
|
|
|
|
'transform:twitter-url-user',
|
|
|
|
'transform:navigation-settings',
|
|
|
|
'transform:slack-settings'
|
|
|
|
]
|
2016-11-24 01:50:57 +03:00
|
|
|
});
|
2016-06-14 11:11:59 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
// Replace this with your real tests.
|
|
|
|
it('serializes records', function() {
|
|
|
|
let record = this.subject();
|
2016-06-14 11:11:59 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
let serializedRecord = record.serialize();
|
2016-06-14 11:11:59 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
expect(serializedRecord).to.be.ok;
|
|
|
|
});
|
|
|
|
});
|