Fix tests and build

Remove unused code and dependencies
This commit is contained in:
Dolan Miu
2023-06-08 13:30:31 +01:00
parent a0a88412ff
commit 09ab91eeef
19 changed files with 22322 additions and 26082 deletions

View File

@ -1,5 +1,4 @@
import { assert, beforeEach, describe, expect, it } from "vitest";
import * as sinon from "sinon";
import { assert, beforeEach, describe, expect, it, vi } from "vitest";
import { Formatter } from "@export/formatter";
import { CoreProperties } from "@file/core-properties";
@ -109,10 +108,10 @@ describe("Formatter", () => {
it("should call the prep method only once", () => {
const paragraph = new Paragraph("");
const spy = sinon.spy(paragraph, "prepForXml");
const spy = vi.spyOn(paragraph, "prepForXml");
formatter.format(paragraph);
expect(spy.calledOnce).to.equal(true);
expect(spy).toBeCalledTimes(1);
});
});
});