TDD,E2E 개선, 미적용 스타일 개선
This commit is contained in:
@@ -42,6 +42,22 @@ describe("dividerHelpers.computeDividerExportTokens", () => {
|
||||
expect(zeroTokens.style).toContain("margin:1em 0;");
|
||||
});
|
||||
|
||||
it("widthMode=\"fixed\" 인 경우 widthPx 는 em 단위 width 로 Export style 에 반영되어야 한다", () => {
|
||||
const tokens = computeDividerExportTokens(
|
||||
{
|
||||
...baseProps,
|
||||
align: "center",
|
||||
widthMode: "fixed",
|
||||
widthPx: 480,
|
||||
},
|
||||
escapers,
|
||||
);
|
||||
|
||||
expect(tokens.style).toContain("width:30em");
|
||||
expect(tokens.style).toContain("margin-left:auto");
|
||||
expect(tokens.style).toContain("margin-right:auto");
|
||||
});
|
||||
|
||||
it("Export 구분선 style 에서는 border-bottom 두께를 제외하고 px 단위가 없어야 한다", () => {
|
||||
const tokens = computeDividerExportTokens({
|
||||
...baseProps,
|
||||
|
||||
Reference in New Issue
Block a user