mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
update tests to use prismjs bundle
This commit is contained in:
parent
68ea1576a8
commit
a7c6309d1d
|
@ -5,7 +5,7 @@ var Server = require('karma').Server;
|
||||||
/**
|
/**
|
||||||
* Run test once and exit
|
* Run test once and exit
|
||||||
*/
|
*/
|
||||||
gulp.task('test', ['inlineTemplates'], function (done) {
|
gulp.task('test', ['concatPrism', 'inlineTemplates'], function (done) {
|
||||||
new Server({
|
new Server({
|
||||||
configFile: __dirname + '/../../karma.conf.js',
|
configFile: __dirname + '/../../karma.conf.js',
|
||||||
singleRun: true
|
singleRun: true
|
||||||
|
|
|
@ -55,7 +55,7 @@ module.exports = function (config) {
|
||||||
jspm: {
|
jspm: {
|
||||||
config: 'system.config.js',
|
config: 'system.config.js',
|
||||||
loadFiles: ['tests/setup.js', 'tests/helpers.js', 'tests/unit/*.spec.js', 'lib/**/*.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
|
nocache: true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ module.exports = function (config) {
|
||||||
'/lib/': '/base/lib/',
|
'/lib/': '/base/lib/',
|
||||||
'/jspm_packages/': '/base/jspm_packages/',
|
'/jspm_packages/': '/base/jspm_packages/',
|
||||||
'/node_modules/': '/base/node_modules/',
|
'/node_modules/': '/base/node_modules/',
|
||||||
|
'/prismjs-bundle.js': '/base/.tmp/prismjs-bundle.js',
|
||||||
'/.tmp/': '/base/.tmp/'
|
'/.tmp/': '/base/.tmp/'
|
||||||
},
|
},
|
||||||
reporters: travis ? ['mocha', 'coverage', 'coveralls'] : ['mocha', 'coverage'],
|
reporters: travis ? ['mocha', 'coverage', 'coveralls'] : ['mocha', 'coverage'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user