summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/__tests__/fixtures/v0.ts
blob: d83b221b6d9998e63ecc34e1db0bbc9440f0ade4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export const v0Project = {
	id: "project-v0-123",
	name: "My V0 Project",
	createdAt: "2024-01-15T10:00:00.000Z",
	updatedAt: "2024-01-15T12:00:00.000Z",
	fps: 30,
	canvasSize: { width: 1920, height: 1080 },
	backgroundColor: "#000000",
	backgroundType: "color",
	bookmarks: [1.5, 3.0],
};

export const v0ProjectWithMetadata = {
	id: "project-v0-456",
	metadata: {
		id: "project-v0-456",
		name: "V0 With Metadata",
		createdAt: "2024-02-01T08:00:00.000Z",
		updatedAt: "2024-02-01T09:00:00.000Z",
	},
	fps: 24,
	canvasSize: { width: 1280, height: 720 },
	backgroundType: "blur",
	blurIntensity: 20,
};

export const v0ProjectEmpty = {
	id: "project-empty",
	name: "Empty Project",
	createdAt: "2024-03-01T00:00:00.000Z",
	updatedAt: "2024-03-01T00:00:00.000Z",
};

// Edge cases
export const projectWithNoId = {
	name: "No ID Project",
	version: 1,
	scenes: [],
};

export const projectWithNullValues = {
	id: "project-nulls",
	version: 1,
	name: null,
	metadata: null,
	scenes: null,
	settings: null,
};

export const projectMalformed = {
	id: "project-malformed",
	// Missing almost everything
};