mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-02-10 04:00:22 +00:00
* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
35 lines
973 B
JavaScript
35 lines
973 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/jasmine/startup.js
|
|
type: application/javascript
|
|
module-type: startup
|
|
|
|
The main module of the Jasmine test plugin for TiddlyWiki5
|
|
|
|
\*/
|
|
|
|
|
|
"use strict";
|
|
|
|
var jasmine = require("./jasmine-plugin.js");
|
|
|
|
exports.name = "jasmine";
|
|
|
|
if($tw.browser) {
|
|
exports.startup = jasmine.runTests;
|
|
exports.before = ["render"];
|
|
exports.after = ["story"];
|
|
} else {
|
|
// However, if we're on node.js, the tests are explciitly run with the
|
|
// --test command. This didn't used to be the case, so if they're
|
|
// not, we'll issue a small notice to cue users in to the change
|
|
// BTW, this notice probably won't be needed forever. It was installed
|
|
// Sept 2022. If it's been four years, this notice can probably come out.
|
|
exports.startup = function() {
|
|
if(!jasmine.testsWereRun()) {
|
|
process.stdout.write("Jasmine: no \"--test\" command given, so skipping tests\n");
|
|
}
|
|
}
|
|
// We make this check after the commands are run.
|
|
exports.after = ["commands"];
|
|
}
|