mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-08 05:26:51 +00:00
![Marica Odagaki](/assets/img/avatar_default.png)
* process.exit() only exist in a node.js environment
* updateInterval has been removed from upstream
From upstream commit:
b6eb9a4d5e
* Update Jasmine to 3.4.0
* Reuse the evalInContext helper
* Fix expected parse result to match the actual result
* 'describe' cannot be nested inside 'it' blocks
Jasmine started to explicitly raise an error in these cases since:
https://github.com/jasmine/jasmine/pull/1411
* Be consistent about how to refer to library files
* Update link to Jasmine's official website
38 lines
962 B
JavaScript
38 lines
962 B
JavaScript
module.exports = require("./jasmine-core/jasmine.js");
|
|
module.exports.boot = require('./jasmine-core/node_boot.js');
|
|
|
|
var path = require('path'),
|
|
fs = require('fs');
|
|
|
|
var rootPath = path.join(__dirname, "jasmine-core"),
|
|
bootFiles = ['boot.js'],
|
|
nodeBootFiles = ['node_boot.js'],
|
|
cssFiles = [],
|
|
jsFiles = [],
|
|
jsFilesToSkip = ['jasmine.js'].concat(bootFiles, nodeBootFiles);
|
|
|
|
fs.readdirSync(rootPath).forEach(function(file) {
|
|
if(fs.statSync(path.join(rootPath, file)).isFile()) {
|
|
switch(path.extname(file)) {
|
|
case '.css':
|
|
cssFiles.push(file);
|
|
break;
|
|
case '.js':
|
|
if (jsFilesToSkip.indexOf(file) < 0) {
|
|
jsFiles.push(file);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
});
|
|
|
|
module.exports.files = {
|
|
path: rootPath,
|
|
bootDir: rootPath,
|
|
bootFiles: bootFiles,
|
|
nodeBootFiles: nodeBootFiles,
|
|
cssFiles: cssFiles,
|
|
jsFiles: ['jasmine.js'].concat(jsFiles),
|
|
imagesDir: path.join(__dirname, '../images')
|
|
};
|