Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Aug 26, 2022
1 parent 305ac34 commit be37ef9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export class LegacySupport {
field: key,
value: extractIdentifierFromRecord(value),
},
// @ts-expect-error
true
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/store/addon/-private/caches/instance-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class InstanceCache {
recordData = new NonSingletonRecordDataManager(this.store, recordDataInstance, identifier);
} else {
if (DEBUG) {
recordData = this.__cacheManager = this.__cacheManager || new SingletonRecordDataManager(this.store);
recordData = this.__cacheManager = this.__cacheManager || new SingletonRecordDataManager();
(recordData as SingletonRecordDataManager)._addRecordData(identifier, recordDataInstance as RecordData);
} else {
recordData = recordDataInstance as RecordData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function configureDeprecationHandler() {
// we do not call next to avoid spamming the console
});

// @ts-expect-error
QUnit.assert.expectDeprecation = async function (
cb: () => unknown,
config: string | RegExp | DeprecationConfig,
Expand Down

0 comments on commit be37ef9

Please sign in to comment.