Permalink
Browse files

Fix Evidence messing up objects in assertion failed messages

Since starting to log test failures to the test server in
524ee26, the messages about failed
assertions were displayed like this in browser console:

    Expected %o to be == to %o.

This was because Evidence's `printf` was misbehaving and emptying the
arguments array which was supposed to be forwarded to `console.log()`.
  • Loading branch information...
1 parent c647762 commit 52fe3b077b8f836277f3b0bfc7c59b2cb1913b64 @mislav mislav committed Dec 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 vendor/evidence.js
View
@@ -1003,7 +1003,7 @@ var UI = (function() {
function printf(template, args, inspector) {
var parts = [], m,
regexp = /(^%|.%)([a-zA-Z])/,
- args = args.splice(0); // clone args
+ args = args.slice(0); // clone args
inspector = inspector || String;

0 comments on commit 52fe3b0

Please sign in to comment.