diff --git a/src/packages/serializer/index.js b/src/packages/serializer/index.js index 03ce9a1e..66ed7dbc 100644 --- a/src/packages/serializer/index.js +++ b/src/packages/serializer/index.js @@ -633,7 +633,9 @@ class Serializer { }); } - return null; + return { + data: null + }; })() }), {}) ); diff --git a/src/packages/serializer/test/serializer.test.js b/src/packages/serializer/test/serializer.test.js index dedb460e..dcd76cd4 100644 --- a/src/packages/serializer/test/serializer.test.js +++ b/src/packages/serializer/test/serializer.test.js @@ -287,7 +287,9 @@ describe('module "serializer"', () => { } }); } else { - expect(relationships.image).to.be.null; + expect(relationships.image).to.deep.equal({ + data: null + }); } expect(relationships)