Skip to content

Commit 974ad65

Browse files
committed
fix(test): Update the number of files asserted in the compiler test case
1 parent f38bd2b commit 974ad65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/export/packer/next-compiler.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("Compiler", () => {
3636
const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name);
3737

3838
expect(fileNames).is.an.instanceof(Array);
39-
expect(fileNames).has.length(19);
39+
expect(fileNames).has.length(20);
4040
expect(fileNames).to.include("word/document.xml");
4141
expect(fileNames).to.include("word/styles.xml");
4242
expect(fileNames).to.include("docProps/core.xml");
@@ -96,7 +96,7 @@ describe("Compiler", () => {
9696
const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name);
9797

9898
expect(fileNames).is.an.instanceof(Array);
99-
expect(fileNames).has.length(27);
99+
expect(fileNames).has.length(28);
100100

101101
expect(fileNames).to.include("word/header1.xml");
102102
expect(fileNames).to.include("word/_rels/header1.xml.rels");
@@ -131,7 +131,7 @@ describe("Compiler", () => {
131131
const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name);
132132

133133
expect(fileNames).is.an.instanceof(Array);
134-
expect(fileNames).has.length(20);
134+
expect(fileNames).has.length(21);
135135

136136
expect(fileNames).to.include("word/comments.xml");
137137
expect(fileNames).to.include("word/commentsExtended.xml");
@@ -163,7 +163,7 @@ describe("Compiler", () => {
163163
const spy = vi.spyOn(compiler["formatter"], "format");
164164

165165
compiler.compile(file);
166-
expect(spy).toBeCalledTimes(15);
166+
expect(spy).toBeCalledTimes(16);
167167
});
168168

169169
it("should work with media datas", () => {

0 commit comments

Comments
 (0)