mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08: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');
|
||
|
}
|
||
|
}
|
||
|
}
|