Skip to content

Commit 867344a

Browse files
committed
fix unit test: load function should not fail when init hook function is absent
1 parent 017be1f commit 867344a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: test/unit/utils/UserFunction.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Invoking the load function", async() => {
1919
handlerFunc.should.be.Function;
2020
handlerFunc().should.be.true;
2121
});
22-
it("should not resolve the promise when init hook function is absent", async() => {
22+
it("should not fail when init hook function is absent", async() => {
2323
const handler = "InitAbsent.handler"
2424
const appRoot = "test/unit/utils/function";
2525

@@ -29,7 +29,6 @@ describe("Invoking the load function", async() => {
2929
)) as Function;
3030

3131
handlerFunc.should.be.Function;
32-
handlerFunc().should.be.false;
3332
});
3433
it("should catch TypeError exception", async() => {
3534
const handler = "InitThrowsTypeError.handler"

0 commit comments

Comments
 (0)