Fix js tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-01-06 13:33:18 +01:00
parent 5e02c7f7bd
commit ccab1168ce
No known key found for this signature in database
GPG key ID: F941078878347C0C
3 changed files with 7 additions and 1 deletions

View file

@ -22,6 +22,10 @@ fi
# update/install test packages
mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3
# create scss test
mkdir -p tests/css
./build/bin/node-sass --output tests/css core/css
KARMA="$PREFIX/node_modules/karma/bin/karma"
NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run

View file

@ -17,7 +17,8 @@
"karma-coverage": "*",
"karma-phantomjs-launcher": "*",
"phantomjs-prebuilt": "*",
"jasmine-core": "~2.5.2"
"jasmine-core": "~2.5.2",
"node-sass": "~4.1.1"
},
"engine": "node >= 0.8"
}

View file

@ -223,6 +223,7 @@ module.exports = function(config) {
// include core CSS
files.push({pattern: 'core/css/*.css', watched: true, included: true, served: true});
files.push({pattern: 'tests/css/*.css', watched: true, included: true, served: true});
config.set({