Skip to content

Commit

Permalink
test: fix font size
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Feb 17, 2022
1 parent dc90ede commit f773b57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion test/unit/Grid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ describe("test Grid", () => {
let container: HTMLElement | null;

beforeEach(() => {
container = sandbox("")!;
const root = sandbox("")!;
root.innerHTML = `
<style>
.sample div {
font-size: 0;
min-height: 18px;
}
</style>
<div class="sample"></div>`;
container = document.querySelector<HTMLElement>(".sample")!;
container!.style.cssText = "";
});

Expand Down
2 changes: 1 addition & 1 deletion test/unit/JustifiedGrid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe("test JustifiedGrid", () => {
container!.style.cssText = "width: 1000px;";

grid = new JustifiedGrid(container!, {
gap: 5,
gap: 6,
horizontal: false,
});

Expand Down

0 comments on commit f773b57

Please sign in to comment.