mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
chore(typescript): ship to TypeScript
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { AssertionError } from './error'
|
||||
|
||||
export default function (predicate: any, message: string) {
|
||||
if (!predicate) {
|
||||
message = message || `expect ${predicate} to be true`
|
||||
throw new AssertionError(message)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user