update tests to use prismjs bundle

This commit is contained in:
Roman Hotsiy 2016-04-28 22:40:57 +03:00
parent 68ea1576a8
commit a7c6309d1d
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ var Server = require('karma').Server;
/**
* Run test once and exit
*/
gulp.task('test', ['inlineTemplates'], function (done) {
gulp.task('test', ['concatPrism', 'inlineTemplates'], function (done) {
new Server({
configFile: __dirname + '/../../karma.conf.js',
singleRun: true

View File

@ -55,7 +55,7 @@ module.exports = function (config) {
jspm: {
config: 'system.config.js',
loadFiles: ['tests/setup.js', 'tests/helpers.js', 'tests/unit/*.spec.js', 'lib/**/*.js'],
serveFiles: ['tests/schemas/**/*.json','tests/schemas/**/*.yml', 'lib/**/*.html', '.tmp/lib/**/*.css'],
serveFiles: ['tests/schemas/**/*.json','tests/schemas/**/*.yml', 'lib/**/*.html', '.tmp/*js', '.tmp/lib/**/*.css'],
nocache: true
},
@ -65,6 +65,7 @@ module.exports = function (config) {
'/lib/': '/base/lib/',
'/jspm_packages/': '/base/jspm_packages/',
'/node_modules/': '/base/node_modules/',
'/prismjs-bundle.js': '/base/.tmp/prismjs-bundle.js',
'/.tmp/': '/base/.tmp/'
},
reporters: travis ? ['mocha', 'coverage', 'coveralls'] : ['mocha', 'coverage'],