Skip to content

Commit

Permalink
fix prod
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Oct 6, 2023
1 parent a4b7d9f commit 5ea63b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/main/tests/integration/records/delete-record-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { setupTest } from 'ember-qunit';

import Adapter from '@ember-data/adapter';
import { InvalidError } from '@ember-data/adapter/error';
import { DEBUG } from '@ember-data/env';
import Model, { attr, belongsTo, hasMany } from '@ember-data/model';
import JSONAPISerializer from '@ember-data/serializer/json-api';
import { recordIdentifierFor } from '@ember-data/store';
Expand Down Expand Up @@ -501,7 +502,9 @@ module('integration/deletedRecord - Deleting Records', function (hooks) {
assert.true(company.isDeleted, 'isDeleted should be true');
assert.true(company.isDestroying, 'isDestroying should be true');
assert.true(company.isDestroyed, 'isDestroyed should be true');
assert.strictEqual(company.id, undefined, 'id access should be safe');
if (DEBUG) {
assert.strictEqual(company.id, undefined, 'id access should be safe');
}
} catch (e) {
assert.ok(false, `Should not throw an error, threw ${e.message}`);
}
Expand Down

0 comments on commit 5ea63b4

Please sign in to comment.