diff --git a/packages/-ember-data/tests/unit/custom-class-support/custom-class-model-test.ts b/packages/-ember-data/tests/unit/custom-class-support/custom-class-model-test.ts index 213379f16b0..2d44fa4e4ac 100644 --- a/packages/-ember-data/tests/unit/custom-class-support/custom-class-model-test.ts +++ b/packages/-ember-data/tests/unit/custom-class-support/custom-class-model-test.ts @@ -110,8 +110,8 @@ module('unit/model - Custom Class Model', function (hooks) { store.push({ data: { id: '1', type: 'person', attributes: { name: 'chris' } } }); recordData.storeWrapper.notifyChange(identifier, 'relationships', 'key'); recordData.storeWrapper.notifyChange(identifier, 'relationships', 'key'); - recordData.storeWrapper.notifyChange(identifier, 'state', 'key'); - recordData.storeWrapper.notifyChange(identifier, 'errors', 'key'); + recordData.storeWrapper.notifyChange(identifier, 'state'); + recordData.storeWrapper.notifyChange(identifier, 'errors'); await settled(); assert.strictEqual(notificationCount, 3, 'called notification callback'); diff --git a/packages/store/addon/-private/managers/record-notification-manager.ts b/packages/store/addon/-private/managers/record-notification-manager.ts index 75c8fb9d970..fffc1c84b15 100644 --- a/packages/store/addon/-private/managers/record-notification-manager.ts +++ b/packages/store/addon/-private/managers/record-notification-manager.ts @@ -57,7 +57,7 @@ export default class NotificationManager { // notify(identifier: StableRecordIdentifier, value: 'errors' | 'meta' | 'identity' | 'state'): boolean; notify(identifier: StableRecordIdentifier, value: NotificationType, key?: string): boolean { assert( - `Notify does not accept a key argument for the namespace ${value}. Received ${key}.`, + `Notify does not accept a key argument for the namespace '${value}'. Received key '${key}'.`, !key || value === 'attributes' || value === 'relationships' ); if (!isStableIdentifier(identifier)) {