remove unused static vars
This commit is contained in:
1 parent
4949acac1c
commit
80d4e818f1
12 files changed
+9
-53
No files matched your search
@@ -90,14 +90,14 @@ describe("EmailService", () => {
|
||||
it("loads all expected templates on construction", () => {
|
||||
const { mockFs } = createService();
|
||||
|
||||
// 6 templates loaded
|
||||
expect(mockFs.readFileSync).toHaveBeenCalledTimes(6);
|
||||
// 5 templates loaded
|
||||
expect(mockFs.readFileSync).toHaveBeenCalledTimes(5);
|
||||
});
|
||||
|
||||
it("compiles each loaded template", () => {
|
||||
const { compile } = createService();
|
||||
|
||||
expect(compile).toHaveBeenCalledTimes(6);
|
||||
expect(compile).toHaveBeenCalledTimes(5);
|
||||
});
|
||||
|
||||
it("logs error when a template file is not found", () => {
|
||||
@@ -141,7 +141,7 @@ describe("EmailService", () => {
|
||||
|
||||
service.init();
|
||||
|
||||
expect(mockFs.readFileSync).toHaveBeenCalledTimes(initialCalls + 6);
|
||||
expect(mockFs.readFileSync).toHaveBeenCalledTimes(initialCalls + 5);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user