Skip to content

🎥 Make videos programmatically with React

run all tests again

Jonny Burger4c5d7979593c
diff --git a/packages/shapes/src/test/make-triangle.test.ts b/packages/shapes/src/test/make-triangle.test.ts
index 45164599bc..0416642032 100644
--- a/packages/shapes/src/test/make-triangle.test.ts
+++ b/packages/shapes/src/test/make-triangle.test.ts
@@ -22,37 +22,34 @@ test('Should be able to make a triangle path', () => {
});
});
-test.only('Should handle triangle path with radius', () => {
+test('Should handle triangle path with radius', () => {
const rightTriangle = makeTriangle({
length: 100,
direction: 'right',
- cornerRadius: 60
+ cornerRadius: 60,
});
- expect(rightTriangle).toEqual(
- {
- height: 100,
- path: "M 0 40 L 0 40 C 0 100 0 100 51.96152422706631 70 L 34.64101615137755 80 C 86.60254037844386 50 86.60254037844386 50 34.64101615137755 20 L 51.96152422706631 30 C 0 0 0 0 0 60 Z",
- transformOrigin: "28.867513459481287 50",
- instructions: expect.any(Array),
- width: 86.60254037844386,
- });
-})
-
+ expect(rightTriangle).toEqual({
+ height: 100,
+ path: 'M 0 40 L 0 40 C 0 100 0 100 51.96152422706631 70 L 34.64101615137755 80 C 86.60254037844386 50 86.60254037844386 50 34.64101615137755 20 L 51.96152422706631 30 C 0 0 0 0 0 60 Z',
+ transformOrigin: '28.867513459481287 50',
+ instructions: expect.any(Array),
+ width: 86.60254037844386,
+ });
+});
-test.only('Should handle triangle path with radius with direction up', () => {
+test('Should handle triangle path with radius with direction up', () => {
const upTriangle = makeTriangle({
length: 100,
direction: 'up',
- cornerRadius: 60
+ cornerRadius: 60,
});
- expect(upTriangle).toEqual(
- {
- height: 86.60254037844386,
- instructions: expect.any(Array),
- path: "M 30 34.64101615137755 L 30 34.64101615137755 C 0 86.60254037844386 0 86.60254037844386 60 86.60254037844386 L 40 86.60254037844386 C 100 86.60254037844386 100 86.60254037844386 70 34.64101615137755 L 80 51.96152422706631 C 50 0 50 0 20 51.96152422706631 Z",
- transformOrigin: "50 57.735026918962575",
- width: 100,
- });
-})
\ No newline at end of file
+ expect(upTriangle).toEqual({
+ height: 86.60254037844386,
+ instructions: expect.any(Array),
+ path: 'M 30 34.64101615137755 L 30 34.64101615137755 C 0 86.60254037844386 0 86.60254037844386 60 86.60254037844386 L 40 86.60254037844386 C 100 86.60254037844386 100 86.60254037844386 70 34.64101615137755 L 80 51.96152422706631 C 50 0 50 0 20 51.96152422706631 Z',
+ transformOrigin: '50 57.735026918962575',
+ width: 100,
+ });
+});