Skip to content

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Dec 17, 2024
1 parent 864f219 commit bfbc35d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/FileListColumn.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ const { textLineComp } = FileListColumn;
describe("FileListColumn.test.mjs", () => {
it("should render non-empty component", () => {
//given
const currTheme = FileListTheme.xterm256Theme;
const currTheme = { ...FileListTheme.xterm256Theme };
currTheme.fileList = {
...currTheme.fileList,
archiveItem: { ...currTheme.fileList.archiveItem, bold: undefined },
};
const props = {
width: 14,
height: 3,
Expand Down Expand Up @@ -69,7 +73,7 @@ describe("FileListColumn.test.mjs", () => {
"{bold}{#055-fg}{#008-bg}.dir 4 {/}{bold}{#5ce-fg}{#008-bg}│{/}",
"{bold}{#055-fg}{#008-bg}.file 5 {/}{bold}{#5ce-fg}{#008-bg}│{/}",
"{bold}{#5ce-fg}{#008-bg} fileй 6 {/}{bold}{#5ce-fg}{#008-bg}│{/}",
"{bold}{#a05-fg}{#008-bg}file.zip {/}{bold}{#5ce-fg}{#008-bg}│{/}",
"{#a05-fg}{#008-bg}file.zip {/}{bold}{#5ce-fg}{#008-bg}│{/}",
].join("\n"),
currTheme
);
Expand Down

0 comments on commit bfbc35d

Please sign in to comment.