mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-01 10:41:07 -06:00
12 lines
217 B
JavaScript
12 lines
217 B
JavaScript
module.exports = class Assert {
|
|
equal (expected, actual) {
|
|
this.assert(expected === actual);
|
|
}
|
|
|
|
assert (b) {
|
|
if ( ! b ) {
|
|
throw new Error('assertion failed');
|
|
}
|
|
}
|
|
}
|