Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLEANUP] remove reference to no more used isNewSerializerAPI flag #4317

Merged
merged 1 commit into from
Apr 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions tests/integration/serializers/rest-serializer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,7 @@ test('normalizeResponse with async polymorphic belongsTo, using <relationshipNam
});

test('normalizeResponse with async polymorphic belongsTo', function(assert) {
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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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, {
Expand All @@ -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, {
Expand All @@ -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 {
Expand Down