diff --git a/test/exception-handling.spec.ts b/test/exception-handling.spec.ts index 50c18fcc..0a62a9a5 100644 --- a/test/exception-handling.spec.ts +++ b/test/exception-handling.spec.ts @@ -5,20 +5,20 @@ const catchVoid = onException(meta => meta.handle()) class Person { @catchVoid - sayHello() { - throw new Error("sayHello err"); + sayHello () { + throw new Error("sayHello err") } } -let personInstance; +let personInstance describe("exception handling advice", () => { beforeEach(() => { - personInstance = new Person; + personInstance = new Person() }) it("Check error throw on invocation", () => { - personInstance.sayHello(); - }); + personInstance.sayHello() + }) })