From f43ac475ce2206d3580d1bcc93b8bf49b9df263f Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 8 Jul 2015 11:30:35 +0200 Subject: [PATCH] fix 404 on karma --- karma.conf.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/karma.conf.js b/karma.conf.js index 2de2abfe..ac545dfe 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,6 +1,10 @@ // Karma configuration // Generated on Wed Apr 15 2015 09:44:14 GMT+0200 (CEST) +// this is needed by theme.service.spec +var fs = require('fs'); +fs.writeFileSync('dist/styles/empty.css', ''); + module.exports = function(config) { var configuration = { @@ -86,6 +90,13 @@ module.exports = function(config) { } }, + proxies: { + '/images/': 'http://localhost:9001/images/', + '/base/dist/js/maps/': 'http://localhost:9001/js/maps/', + '/base/dist/js/maps/': 'http://localhost:9001/js/maps/', + '/styles/theme-testTheme.css': 'http://localhost:9001/styles/empty.css' + }, + // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: false