Permalink
Browse files

Small bugfix to new formatting of test errors

  • Loading branch information...
1 parent d4558fd commit 62b5f1c7ba87759d0e426b676c639406c20a1a43 @avital avital committed Nov 3, 2012
Showing with 9 additions and 4 deletions.
  1. +9 −4 packages/test-in-browser/driver.js
@@ -160,12 +160,16 @@ Template.event.get_details = function() {
return _.compact(_.map(details, function(val, key) {
// You can end up with a an undefined value, e.g. using
- // isNull without providing a message attribute: isNull(1)
- if (!_.isUndefined(val))
+ // isNull without providing a message attribute: isNull(1).
+ // No need to display those.
+ if (!_.isUndefined(val)) {
return {
key: key,
val: val
};
+ } else {
+ return undefined;
+ }
}));
};
@@ -176,9 +180,10 @@ Template.event.get_details = function() {
} else {
var type = details.type;
- delete details.type;
-
var stack = details.stack;
+
+ details = _.clone(details);
+ delete details.type;
delete details.stack;
return {

0 comments on commit 62b5f1c

Please sign in to comment.