mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +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');
|
|
}
|
|
}
|
|
}
|