fix: 🐛 handle missing principals array in role response

This commit is contained in:
Randall Morey committed 2020-09-12 11:40:21 -04:00
1 parent 048e202343
commit bcd46cec1f
6 files changed
+39 -7

No files matched your search

@@ -140,7 +140,7 @@ module('Unit | Serializer | application', function (hooks) {
});
test('it normalizes missing arrays in single responses if annotated in model attributes', function (assert) {
assert.expect(2);
assert.expect(1);
const store = this.owner.lookup('service:store');
const serializer = store.serializerFor('target');
const target = store.createRecord('target').constructor;
@@ -154,7 +154,6 @@ module('Unit | Serializer | application', function (hooks) {
target,
payload
);
assert.notOk(payload.bogusArrayField);
assert.deepEqual(normalized, {
included: [],
data: {