jasmine-node
Advanced tools
Comparing version 1.0.28 to 1.1.0
var jasmine = require('./index'); | ||
var util, | ||
Path= require('path'); | ||
Path= require('path'), | ||
fs = require('fs'); | ||
try { | ||
@@ -129,2 +130,8 @@ util = require('util') | ||
process.on('uncaughtException', function(e) { | ||
console.error(e.stack || e); | ||
exitCode = 1; | ||
process.exit(exitCode); | ||
}); | ||
process.on("exit", onExit); | ||
@@ -131,0 +138,0 @@ |
@@ -11,3 +11,3 @@ var fs = require('fs'); | ||
var filename = __dirname + '/jasmine-2.0.0.rc1.js'; | ||
var filename = __dirname + '/jasmine-1.3.1.js'; | ||
var isWindowUndefined = typeof global.window === 'undefined'; | ||
@@ -83,3 +83,3 @@ if (isWindowUndefined) { | ||
specs = require('./spec-collection'), | ||
jasmineEnv = jasmine.currentEnv_ = new jasmine.Env(); | ||
jasmineEnv = jasmine.getEnv(); | ||
@@ -86,0 +86,0 @@ specs.load(folder, fileMatcher); |
@@ -17,3 +17,3 @@ var walkdir = require('walkdir'); | ||
exports.load = function(loadpath, matcher) { | ||
var wannaBeSpecs = walkdir.sync(loadpath) | ||
var wannaBeSpecs = walkdir.sync(loadpath, { follow_symlinks: true }) | ||
specs = []; | ||
@@ -20,0 +20,0 @@ |
{ | ||
"name" : "jasmine-node" | ||
, "version" : "1.0.28" | ||
, "version" : "1.1.0" | ||
, "description" : "DOM-less simple JavaScript BDD testing framework for Node" | ||
, "contributors" : [ "Chris Moultrie <chris@moultrie.org>" ] | ||
, "homepage" : [ "http://pivotal.github.com/jasmine" | ||
@@ -6,0 +7,0 @@ , "https://github.com/mhevery/jasmine-node"] |
@@ -73,2 +73,3 @@ jasmine-node | ||
----------- | ||
Install the dependent packages by running: | ||
@@ -85,1 +86,6 @@ | ||
scripts/specs --verbose | ||
changelog | ||
--------- | ||
* _1.1.0 - Updated Jasmine to 1.3.1, fixed fs missing, catching uncaught exceptions, other fixes_ |
@@ -6,15 +6,11 @@ (function(){ | ||
beforeEach(function(){ | ||
this.addMatchers({ | ||
toHaveProperty: function(prop) { | ||
try { | ||
return prop in this.actual; | ||
} | ||
catch (e) { | ||
return false; | ||
} | ||
jasmine.Matchers.prototype.toHaveProperty = function(prop) { | ||
try { | ||
return prop in this.actual; | ||
} | ||
}); | ||
}); | ||
catch (e) { | ||
return false; | ||
} | ||
} | ||
})(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135651
3840
90
16
3