1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00
TiddlyWiki5/plugins/tiddlywiki/jasmine/command.js

34 lines
674 B
JavaScript
Raw Normal View History

2022-11-20 17:54:18 +00:00
/*\
title: $:/plugins/tiddlywiki/jasmine/command.js
type: application/javascript
module-type: command
The command which executes jasmine on the command line for TiddlyWiki5
\*/
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var jasmine = require("./jasmine-plugin.js");
exports.info = {
name: "test",
synchronous: false,
namedParameterMode: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var specFilter = this.params.spec;
jasmine.runTests(this.callback,specFilter);
};
exports.Command = Command;