Skip to content

🎥 Make videos programmatically with React

Update stringify-default-props.test.ts

Jonny Burger4c7cf58442eb
diff --git a/packages/cli/src/test/stringify-default-props.test.ts b/packages/cli/src/test/stringify-default-props.test.ts
index 09880b1ed7..0692a43d14 100644
--- a/packages/cli/src/test/stringify-default-props.test.ts
+++ b/packages/cli/src/test/stringify-default-props.test.ts
@@ -9,13 +9,11 @@ test('Should stringify default props correctly', () => {
const result = stringifyDefaultProps({
props: {
abc: 'def',
- newDate: new Date('2022-01-02'),
+ newDate: 'remotion-date:2022-01-02',
},
enumPaths: [],
});
- expect(result).toBe(
- `{"abc":"def","newDate":new Date('2022-01-02T00:00:00.000Z')}`
- );
+ expect(result).toBe(`{"abc":"def","newDate":new Date("2022-01-02")}`);
});
test('Should stringify default props correctly', () => {