24 lines
378 B
JavaScript
24 lines
378 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const assert = require('proclaim');
|
||
|
const mockery = require('mockery');
|
||
|
const sinon = require('sinon');
|
||
|
|
||
|
sinon.assert.expose(assert, {
|
||
|
includeFail: false,
|
||
|
prefix: ''
|
||
|
});
|
||
|
|
||
|
beforeEach(() => {
|
||
|
mockery.enable({
|
||
|
useCleanCache: true,
|
||
|
warnOnUnregistered: false,
|
||
|
warnOnReplace: false
|
||
|
});
|
||
|
});
|
||
|
|
||
|
afterEach(() => {
|
||
|
mockery.deregisterAll();
|
||
|
mockery.disable();
|
||
|
});
|