benderjs-jasmine
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -6,4 +6,2 @@ ( function( bender ) { | ||
function nop() {} | ||
// expose jasmine API | ||
@@ -74,4 +72,5 @@ window.describe = function( desc, spec ) { | ||
function buildError( result ) { | ||
var pattern = /^Error:\s|\n.+jasmine.js.+\)/gi, | ||
var pattern = /\n.*jasmine.js.*/gi, | ||
error = [], | ||
exp, | ||
i; | ||
@@ -81,4 +80,11 @@ | ||
errors++; | ||
exp = result.failedExpectations[ i ]; | ||
if ( exp.stack.indexOf( exp.message ) === -1 ) { | ||
error.push( exp.message ); | ||
} | ||
error.push( | ||
result.failedExpectations[ i ].stack | ||
exp.stack | ||
.replace( pattern, '' ) | ||
@@ -114,4 +120,5 @@ ); | ||
this.specStarted = function() { | ||
this.specStarted = function( result ) { | ||
total++; | ||
result.startTime = +new Date(); | ||
}; | ||
@@ -124,2 +131,3 @@ | ||
result.success = true; | ||
result.duration = +new Date() - result.startTime; | ||
@@ -126,0 +134,0 @@ if ( result.status === 'passed' ) { |
{ | ||
"name": "benderjs-jasmine", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Adapter for Jasmine testing framework for Bender.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"lint": "jscs . && jshint lib/" | ||
}, | ||
@@ -26,3 +26,7 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/benderjs/benderjs-jasmine" | ||
"homepage": "https://github.com/benderjs/benderjs-jasmine", | ||
"devDependencies": { | ||
"jscs": "^1.5.9", | ||
"jshint": "^2.5.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
72085
10
2106
1
2