mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-22 04:06:29 +00:00
Nicco
56a8103582
* rewrite * testing worklflow * sprcify version * config stuff * add hash as buffer * delete docs * use typedarray everywhere and docs * readme * aes * cleanup * rsa * testing with playwright * fix playwright * readme * docs * update deps * use headless * add prepublish * build pipeline * move types up * move types up * add types legacy * packaging * versions bump * cleanup * maybe this time * drop support for commonjs * version bump * cleanup
13 lines
246 B
JavaScript
13 lines
246 B
JavaScript
/**
|
|
* Hook for mocha tests in node
|
|
* Initialises chai and chai-as-promised as global variables
|
|
*/
|
|
|
|
export const mochaHooks = {
|
|
async beforeEach() {
|
|
if (typeof chai === 'undefined') {
|
|
global.chai = await import('chai')
|
|
}
|
|
},
|
|
}
|