Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('Should load the appropriate assets outside of production', function () {
assert.isTrue(isProduction.calledOnce);
assert.isTrue(connect().use.calledWith('/resources'));
assert.isTrue(require('serve-static').calledOnce);
assert.isTrue(require('serve-static').firstCall.calledWith('/path/to/tests'));
assert.isTrue(renderer().assetServer.calledOnce);
});