Skip to content

Commit

Permalink
Fixes need to go on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
download13 committed Sep 16, 2012
1 parent 0f4be37 commit 6f60588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion moka.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
var async = require('async');
var domain = require('domain');

var DEFAULT_TIMEOUT = 5000;
var describeStack = [];
var sections = [];
var totalTests = 0;

var helpers = {
it: function(text, task) {
it: function(text, task, timeout) {
var test = {text: text, task: task};
var desc = describeStack[describeStack.length - 1];
desc.tests.push(test);
Expand All @@ -25,6 +26,7 @@ var helpers = {
describeStack[describeStack.length - 1].afterEach = task;
}
};
// Gets the parameter names from the function source so we know what to send to it
function getArgs(fn, helpers) { // I'm hoping this is safe...
var fns = fn.toString();
var args = fns.substring(fns.indexOf('(') + 1, fns.indexOf(')')).match(/([^\s,]+)/g);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moka",
"version": "0.1.0",
"version": "0.1.1",
"description": "Like Mocha, but doesn't get in my damn way",
"author": "download <download333@gmail.com>",
"main": "moka",
Expand Down

0 comments on commit 6f60588

Please sign in to comment.