mirror of
https://github.com/tests-always-included/mo.git
synced 2026-04-08 00:40:38 +02:00
Making the specs run again in an easier way
This commit is contained in:
5
run-spec.js
Executable file → Normal file
5
run-spec.js
Executable file → Normal file
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var async, exec, fs, summary, specFiles;
|
||||
var async, exec, fs, summary;
|
||||
|
||||
function makeShellString(value) {
|
||||
if (typeof value === 'string') {
|
||||
@@ -71,7 +71,8 @@ function runTest(test, done) {
|
||||
Object.keys(test.data).forEach(function (name) {
|
||||
script.push(addToEnvironment(name, test.data[name]));
|
||||
});
|
||||
script.push('. mo spec-runner/spec-template');
|
||||
script.push('. mo');
|
||||
script.push('mo spec-runner/spec-template');
|
||||
test.script = script.join('\n');
|
||||
async.series([
|
||||
function (taskDone) {
|
||||
|
||||
Reference in New Issue
Block a user