How to use the serve-static.calledWith function in serve-static

To help you get started, we’ve selected a few serve-static examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github springernature / shunter / tests / server / core / worker.js View on Github external
it('Should load the appropriate assets in production mode', function () {
		assert.isTrue(connect().use.calledWith('/public'));
		assert.isTrue(require('serve-static').calledWith('/path/to/public'));
		assert.isTrue(renderer().assetServer.notCalled);
	});

serve-static

Serve static files

MIT
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis