From f78db62d6453e9f4dfee54e9102d0c04d6bb75c0 Mon Sep 17 00:00:00 2001 From: pangratz Date: Sat, 9 Apr 2016 22:33:43 +0200 Subject: [PATCH] [CLEANUP] remove reference to no more used isNewSerializerAPI flag This flag has been used when transitioning from 1.13 to 2.0 and is no more needed in 2.x --- .../serializers/rest-serializer-test.js | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/tests/integration/serializers/rest-serializer-test.js b/tests/integration/serializers/rest-serializer-test.js index 6bc505f36c7..0fe0f744dac 100644 --- a/tests/integration/serializers/rest-serializer-test.js +++ b/tests/integration/serializers/rest-serializer-test.js @@ -680,9 +680,7 @@ test('normalizeResponse with async polymorphic belongsTo, using { return { @@ -717,9 +715,7 @@ test('normalizeResponse with async polymorphic belongsTo', function(assert) { test('normalizeResponse with async polymorphic hasMany', function(assert) { SuperVillain.reopen({ evilMinions: DS.hasMany('evil-minion', { async: true, polymorphic: true }) }); - env.registry.register('serializer:application', DS.RESTSerializer.extend({ - isNewSerializerAPI: true - })); + env.registry.register('serializer:application', DS.RESTSerializer.extend()); var store = env.store; env.adapter.findRecord = () => { return { @@ -806,9 +802,7 @@ test("normalizeResponse can load secondary records of the same type without affe }); test("don't polymorphically deserialize base on the type key in payload when a type attribute exist", function(assert) { - env.registry.register('serializer:application', DS.RESTSerializer.extend({ - isNewSerializerAPI: true - })); + env.registry.register('serializer:application', DS.RESTSerializer.extend()); run(function() { env.store.push(env.restSerializer.normalizeArrayResponse(env.store, Basket, { @@ -831,9 +825,7 @@ test("don't polymorphically deserialize base on the type key in payload when a t }); test("don't polymorphically deserialize base on the type key in payload when a type attribute exist on a singular response", function(assert) { - env.registry.register('serializer:application', DS.RESTSerializer.extend({ - isNewSerializerAPI: true - })); + env.registry.register('serializer:application', DS.RESTSerializer.extend()); run(function() { env.store.push(env.restSerializer.normalizeSingleResponse(env.store, Basket, { @@ -849,9 +841,7 @@ test("don't polymorphically deserialize base on the type key in payload when a t test("don't polymorphically deserialize based on the type key in payload when a relationship exists named type", function(assert) { - env.registry.register('serializer:application', DS.RESTSerializer.extend({ - isNewSerializerAPI: true - })); + env.registry.register('serializer:application', DS.RESTSerializer.extend()); env.adapter.findRecord = () => { return {