lib/jspec.js in visionmedia-jspec-2.5.1 vs lib/jspec.js in visionmedia-jspec-2.6.0

- old
+ new

@@ -3,11 +3,11 @@ (function(){ JSpec = { - version : '2.5.1', + version : '2.6.0', suites : [], modules : [], allSuites : [], matchers : {}, stubbed : [], @@ -1509,10 +1509,11 @@ be_an : "alias be_a", be_an_instance_of : "actual instanceof expected", be_null : "actual == null", be_true : "actual == true", be_false : "actual == false", + be_undefined : "typeof actual == 'undefined'", be_type : "typeof actual == expected", match : "typeof actual == 'string' ? actual.match(expected) : false", respond_to : "typeof actual[expected] == 'function'", have_length : "actual.length == expected", be_within : "actual >= expected[0] && actual <= last(expected)", @@ -1621,7 +1622,9 @@ actual[property] instanceof Function ? false: value == null ? true: value === actual[property] } }) + + if ('exports' in main) exports.JSpec = JSpec })() \ No newline at end of file