Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
test: added test for compile throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Nov 26, 2020
1 parent d74cac4 commit 0db6f11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vdom/__test__/compile.spec.ts
Expand Up @@ -33,4 +33,8 @@ describe('.compile', () => {
},
});
});
it('should throw an error', () => {
//@ts-ignore
expect(() => compile()).toThrowError(new Error('Please provide a Element'))
});
});

0 comments on commit 0db6f11

Please sign in to comment.