Skip to content

Commit

Permalink
[BUGFIX] account for observer changes in ember 3.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Aug 15, 2019
1 parent 2ec6bb6 commit bde7c38
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/-ember-data/tests/unit/model/rollback-attributes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { module, test } from 'qunit';
import DS from 'ember-data';
import { setupTest } from 'ember-qunit';
import { settled } from '@ember/test-helpers';
import { gte } from 'ember-compatibility-helpers';

let env, store, Person;

Expand Down Expand Up @@ -367,7 +368,11 @@ module('unit/model/rollbackAttributes - model.rollbackAttributes()', function(ho
});

test("invalid record's attributes can be rollbacked", async function(assert) {
assert.expect(12);
if (gte('3.13.0')) {
assert.expect(14);
} else {
assert.expect(13);
}

class Dog extends Model {
@attr() name;
Expand Down Expand Up @@ -438,7 +443,11 @@ module('unit/model/rollbackAttributes - model.rollbackAttributes()', function(ho
});

test(`invalid record's attributes rolled back to correct state after set`, async function(assert) {
assert.expect(14);
if (gte('3.13.0')) {
assert.expect(15);
} else {
assert.expect(14);
}

class Dog extends Model {
@attr() name;
Expand Down

0 comments on commit bde7c38

Please sign in to comment.