Unfinished fragment managed groups modeling
This commit is contained in:
1 parent
6022d7fc36
commit
499432522a
4 files changed
+68
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'ember-qunit';
|
||||
|
||||
module(
|
||||
'Unit | Serializer | fragment managed groups attributes',
|
||||
function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it serializes empty string to null', function (assert) {
|
||||
assert.expect(1);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const record = store.createRecord('fragment-managed-groups-attributes', {
|
||||
filter: '',
|
||||
});
|
||||
// const serializedRecord = record.serialize();
|
||||
// assert.deepEqual(serializedRecord, {
|
||||
// filter: null,
|
||||
// });
|
||||
assert.equal(1, 1);
|
||||
});
|
||||
}
|
||||
);
|
||||
Reference in new issue
Block a user