lib/jspec.js in jspec-3.1.2 vs lib/jspec.js in jspec-3.1.3

- old
+ new

@@ -2,11 +2,11 @@ // JSpec - Core - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed) ;(function(){ JSpec = { - version : '3.1.2', + version : '3.1.3', assert : true, cache : {}, suites : [], modules : [], allSuites : [], @@ -1044,24 +1044,24 @@ * @return {hash} * @api public */ expect : function(actual) { - assert = function(matcher, args, negate) { + function assert(matcher, args, negate) { var expected = toArray(args, 1) matcher.negate = negate assertion = new JSpec.Assertion(matcher, actual, expected, negate) hook('beforeAssertion', assertion) if (matcher.defer) assertion.run() else JSpec.currentSpec.assertions.push(assertion.run().report()), hook('afterAssertion', assertion) return assertion.result } - to = function(matcher) { + function to(matcher) { return assert(matcher, arguments, false) } - not_to = function(matcher) { + function not_to(matcher) { return assert(matcher, arguments, true) } return { to : to, \ No newline at end of file