refactor: migrate memory repository (#15532)
This commit is contained in:
Vendored
+8
-5
@@ -1,10 +1,9 @@
|
||||
import { MemoryEntity } from 'src/entities/memory.entity';
|
||||
import { MemoryType } from 'src/enum';
|
||||
import { assetStub } from 'test/fixtures/asset.stub';
|
||||
import { userStub } from 'test/fixtures/user.stub';
|
||||
|
||||
export const memoryStub = {
|
||||
empty: <MemoryEntity>{
|
||||
empty: {
|
||||
id: 'memoryEmpty',
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
@@ -15,8 +14,10 @@ export const memoryStub = {
|
||||
data: { year: 2024 },
|
||||
isSaved: false,
|
||||
assets: [],
|
||||
},
|
||||
memory1: <MemoryEntity>{
|
||||
deletedAt: null,
|
||||
seenAt: null,
|
||||
} as unknown as any,
|
||||
memory1: {
|
||||
id: 'memory1',
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
@@ -27,5 +28,7 @@ export const memoryStub = {
|
||||
data: { year: 2024 },
|
||||
isSaved: false,
|
||||
assets: [assetStub.image1],
|
||||
},
|
||||
deletedAt: null,
|
||||
seenAt: null,
|
||||
} as unknown as any,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user