Socket
Socket
Sign inDemoInstall

jasmine-dom

Package Overview
Dependencies
52
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

28

lib/jasmine-dom/index.js

@@ -14,4 +14,9 @@ var fs = require('fs'),

this.isTestRunQueued = false;
this.reporter = this._setupReporter(); // async
this.reporter = this._setupReporter(function(){
callback();
}); // async
if(doServer){

@@ -35,3 +40,2 @@ this.server = that._setupServer({

}
};

@@ -45,2 +49,3 @@

console.debug("Reporter created.");
callback();
}

@@ -152,3 +157,3 @@ });

exports.run = function(options){
exports.run = function(options, callback){
var onDone = options.onDone || function(){},

@@ -159,5 +164,16 @@ debug = options.debug;

var runner = new JasmineRunner(options);
runner.runTests(onDone);
return runner;
process.on('uncaughtException', function(err){
if(debug){
console.debug("An uncaught error occured!");
console.error(err.message + "\n",err.stack);
} else {
console.error("An error occurred while running the tests. Use the --debug switch to find out more.")
exit(1);
}
});
var runner = new JasmineRunner(options, function(){
runner.runTests(onDone);
callback( runner );
});
};

@@ -51,3 +51,3 @@ function Runner( options ){

Runner.prototype._executeRunner = function(pathToHtml, scripts, reporter, callback){
console.debug("Executing runner with following scripts: ");
console.debug("Constructing runner with following scripts: ");
for(var i = 0; i < scripts.length; i++) console.debug(" - " + scripts[i]);

@@ -74,2 +74,3 @@

console.debug("Running runner in Jasmine.");
window.jasmine.getEnv().execute();

@@ -76,0 +77,0 @@

{
"name" : "jasmine-dom"
, "version" : "0.2.2"
, "version" : "0.2.3"

@@ -16,3 +16,6 @@ , "description" : "Run your jasmine html SpecRunner in node.js."

"node-static" : "0.5.7",
"yaml" : "0.2.1"
"yaml" : "0.2.1",
"request" : "2.0.2",
"cssom" : "0.2.0",
"htmlparser" : "1.7.3"
}

@@ -19,0 +22,0 @@ , "bin" : "bin/jasmine-dom"

@@ -50,9 +50,11 @@ node-jasmine-dom

---
test_one:
name: This is the name of the first set of tests
runner: path/to/runner_1.html
test_two:
name: This is the name of the second set of tests
runner: path/to/another/runner.html
```yaml
---
test_one:
name: This is the name of the first set of tests
runner: path/to/runner_1.html
test_two:
name: This is the name of the second set of tests
runner: path/to/another/runner.html
```

@@ -59,0 +61,0 @@ The config file allows you to provide names for your runners. These names will be used when identifying failing tests.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc