mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-25 17:06:25 +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 {}
|
|
}
|
|
}
|