Skip to content

Commit 1684370

Browse files
committed
Fixed tests
1 parent ea0df71 commit 1684370

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/components/__tests__/Bottom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test("Bottom stacked has correct styles", async () => {
9595
expect(style1.left).toBe("0px");
9696
expect(style1.top).toBe("");
9797
expect(style1.right).toBe("0px");
98-
expect(style1.bottom).toBe("calc(10px + 0px)");
98+
expect(style1.bottom).toBe("calc(0px + 10px)");
9999
expect(style1.width).toBe("");
100100
expect(style1.height).toBe("10px");
101101
});
@@ -123,7 +123,7 @@ test("Bottom stacked reversed has correct styles", async () => {
123123
expect(style1.left).toBe("0px");
124124
expect(style1.top).toBe("");
125125
expect(style1.right).toBe("0px");
126-
expect(style1.bottom).toBe("calc(10px + 0px)");
126+
expect(style1.bottom).toBe("calc(0px + 10px)");
127127
expect(style1.width).toBe("");
128128
expect(style1.height).toBe("10px");
129129
});

src/components/__tests__/Left.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ test("Left stacked has correct styles", async () => {
9292
const sut1 = container.querySelector("#test1")!;
9393
const style1 = window.getComputedStyle(sut1);
9494

95-
expect(style1.left).toBe("calc(10px + 0px)");
95+
expect(style1.left).toBe("calc(0px + 10px)");
9696
expect(style1.top).toBe("0px");
9797
expect(style1.right).toBe("");
9898
expect(style1.bottom).toBe("0px");
@@ -120,7 +120,7 @@ test("Left stacked reversed has correct styles", async () => {
120120
const sut1 = container.querySelector("#test1")!;
121121
const style1 = window.getComputedStyle(sut1);
122122

123-
expect(style1.left).toBe("calc(10px + 0px)");
123+
expect(style1.left).toBe("calc(0px + 10px)");
124124
expect(style1.top).toBe("0px");
125125
expect(style1.right).toBe("");
126126
expect(style1.bottom).toBe("0px");

src/components/__tests__/Right.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test("Right stacked has correct styles", async () => {
9494

9595
expect(style1.left).toBe("");
9696
expect(style1.top).toBe("0px");
97-
expect(style1.right).toBe("calc(10px + 0px)");
97+
expect(style1.right).toBe("calc(0px + 10px)");
9898
expect(style1.bottom).toBe("0px");
9999
expect(style1.width).toBe("10px");
100100
expect(style1.height).toBe("");
@@ -122,7 +122,7 @@ test("Right stacked reversed has correct styles", async () => {
122122

123123
expect(style1.left).toBe("");
124124
expect(style1.top).toBe("0px");
125-
expect(style1.right).toBe("calc(10px + 0px)");
125+
expect(style1.right).toBe("calc(0px + 10px)");
126126
expect(style1.bottom).toBe("0px");
127127
expect(style1.width).toBe("10px");
128128
expect(style1.height).toBe("");

src/components/__tests__/Top.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test("Top stacked has correct styles", async () => {
9393
const style1 = window.getComputedStyle(sut1);
9494

9595
expect(style1.left).toBe("0px");
96-
expect(style1.top).toBe("calc(10px + 0px)");
96+
expect(style1.top).toBe("calc(0px + 10px)");
9797
expect(style1.right).toBe("0px");
9898
expect(style1.bottom).toBe("");
9999
expect(style1.width).toBe("");
@@ -121,9 +121,9 @@ test("Top stacked reversed has correct styles", async () => {
121121
const style1 = window.getComputedStyle(sut1);
122122

123123
expect(style1.left).toBe("0px");
124-
expect(style1.top).toBe("calc(10px + 0px)");
124+
expect(style1.top).toBe("calc(0px + 10px)");
125125
expect(style1.right).toBe("0px");
126-
expect(style1.bottom).toBe("0px");
126+
expect(style1.bottom).toBe("");
127127
expect(style1.width).toBe("");
128128
expect(style1.height).toBe("10px");
129129
});

0 commit comments

Comments
 (0)