Browse Source

test(core): Fix type error in tests

Michael Bromley 5 years ago
parent
commit
55a9404059
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/core/src/config/config.service.mock.ts

+ 2 - 2
packages/core/src/config/config.service.mock.ts

@@ -52,8 +52,8 @@ export class MockConfigService implements MockClass<ConfigService> {
 export const ENCODED = 'encoded';
 export const DECODED = 'decoded';
 
-export class MockIdStrategy implements EntityIdStrategy {
-    primaryKeyType = 'integer' as any;
+export class MockIdStrategy implements EntityIdStrategy<'increment'> {
+    readonly primaryKeyType = 'increment';
     encodeId = jest.fn().mockReturnValue(ENCODED);
     decodeId = jest.fn().mockReturnValue(DECODED);
 }