1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 09:36:18 +00:00
TiddlyWiki5/plugins/tiddlywiki/jasmine/command.js
2022-11-20 17:54:18 +00:00

34 lines
674 B
JavaScript

/*\
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;