Files
tlsn-js/test/utils.ts
tsukino b18fe34528 chore: fix test in github action (#41)
* Typescript tests in chrome

* increase timeout to 5min

* close page

* force close browser

* force exit process

* refactor: clean up test code

* chore: update readme for adding a new test
2024-03-28 07:17:21 -04:00

4 lines
115 B
TypeScript

export function assert(expr: any, msg = 'unknown assertion error') {
if (!Boolean(expr)) throw new Error(msg);
}