Skip to content

Instantly share code, notes, and snippets.

@aron
Created April 19, 2010 08:25
Show Gist options
  • Save aron/370844 to your computer and use it in GitHub Desktop.
Save aron/370844 to your computer and use it in GitHub Desktop.
diff --git a/riot.js b/riot.js
index 27e5162..fa0d017 100644
--- a/riot.js
+++ b/riot.js
@@ -491,7 +491,7 @@
}
}
}
- for (var key in a) {
+ for (var key in b) {
if (!this.isEqual(a[key], b[key])) {
return;
}
Riot.context('Riot.Assertion', function() {
given('isEqual()', function () {
should('return falsy when an empty object is supplied as the first param', function() {
return ! Riot.Assertion.prototype.isEqual({}, {a: 'a', b: 'b'});
}).isTrue();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment