1 /* global beforeEach, expect */
3 var has = Object.prototype.hasOwnProperty;
4 var getKeys = function (o) {
10 if (has.call(o, key)) {
17 beforeEach(function () {
21 toExactlyMatch: function (expected) {
22 var a1, a2, l, i, key;
23 var actual = this.actual;
26 a2 = getKeys(expected);
29 if (l !== a2.length) {
32 for (i = 0; i < l; i++) {
34 expect(key).toEqual(a2[i]);
35 expect(actual[key]).toEqual(expected[key]);