Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loadAssertionLibrary: function loadAssertionLibrary() {
if (booleanHelper.isTruthy(process.env['chimp.chai'])) {
log.debug('[chimp][helper] Using the chai-expect assertion library');
chai.use(chaiAsPromised);
chai.should();
// give users access to the chai instance
global.chai = chai;
global.expect = chai.expect;
global.assert = chai.assert;
} else {
log.debug('[chimp][helper] Using the jasmine-expect assertion library');
global.expect = require('xolvio-jasmine-expect').expect;
}
},
loadAssertionLibrary: function () {
if (booleanHelper.isTruthy(process.env['chimp.chai'])) {
log.debug('[chimp][helper] Using the chai-expect assertion library');
chai.use(chaiAsPromised);
chai.should();
// give users access to the chai instance
global.chai = chai;
global.expect = chai.expect;
global.assert = chai.assert;
} else {
log.debug('[chimp][helper] Using the jasmine-expect assertion library');
global.expect = require('xolvio-jasmine-expect').expect;
}
},
before(function () {
process.env['chimp.chai'] = true;
chimpHelper.loadAssertionLibrary();
chimpHelper.init();
chimpHelper.setupBrowserAndDDP();
});
before(function () {
process.env['chimp.chai'] = true;
chimpHelper.loadAssertionLibrary();
chimpHelper.init();
chimpHelper.setupBrowserAndDDP();
});