Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed session errors to script errors. #149

Merged
merged 1 commit into from Aug 11, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Changed session errors to script errors.

  • Loading branch information
arb committed Aug 11, 2014
commit 85ed4f4c884f60e66d41d2ea3934e9863de017b4
@@ -122,14 +122,14 @@ internals.Reporter.prototype.end = function (notebook) {

// remove node_modules folders and only show the first 5 lines of the stack
stack = stack.split('\n').filter(function (line) {

return !(/\/node_modules\//.test(line));
}).slice(0,5).join('\n');

output += red(message) + '\n';
output += gray(stack) + '\n\n';
}
output += red('There were ' + errors.length + ' session error(s).') + '\n\n'
output += red('There were ' + errors.length + ' test script error(s).') + '\n\n'
}

if (failures.length) {
@@ -500,7 +500,7 @@ describe('Reporter', function () {
var result = output.replace(/\/[\/\w]+\.js\:\d+\:\d+/g, '<trace>');

expect(code).to.equal(1);
expect(result).to.contain('There were 1 session error(s).');
expect(result).to.contain('There were 1 test script error(s).');
expect(result).to.contain('there was an error in the before function');
done();
});
@@ -527,7 +527,7 @@ describe('Reporter', function () {
var result = output.replace(/\/[\/\w]+\.js\:\d+\:\d+/g, '<trace>');

expect(code).to.equal(1);
expect(result).to.contain('There were 1 session error(s).');
expect(result).to.contain('There were 1 test script error(s).');
expect(result).to.contain('there was an error in the afterEach function');
done();
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.