From d408f4c0fe34fbbcc0c0584f2acdd3fe4b117187 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 19 Jan 2019 04:57:18 +0100 Subject: Add tests for csp.js Since we lack of tests but got some great point to start, let's write more tests. This patch provides some basic tests for our CSP library. It's more an integration than a unit test, but gets the job done. Signed-off-by: Sheogorath --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') diff --git a/package.json b/package.json index 30c4bf8d..f2811fe5 100644 --- a/package.json +++ b/package.json @@ -184,6 +184,7 @@ "less-loader": "^4.1.0", "mini-css-extract-plugin": "^0.4.1", "mocha": "^5.2.0", + "mock-require": "^3.0.3", "optimize-css-assets-webpack-plugin": "^5.0.0", "script-loader": "^0.7.2", "string-loader": "^0.0.1", -- cgit v1.2.3