mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-23 04:16:27 +00:00
9 lines
151 B
JavaScript
9 lines
151 B
JavaScript
|
export class Promises {
|
||
|
static async reject(fn) {
|
||
|
try {
|
||
|
await fn()
|
||
|
chai.expect.fail('Should have thrown error')
|
||
|
} catch {}
|
||
|
}
|
||
|
}
|