Permalink
Browse files

test: fix tests

  • Loading branch information...
1 parent 60c78a9 commit ad056d806dd64692f1e457d1de8995959c91737c @TooTallNate committed Nov 10, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 test/weakref.js
View
@@ -27,8 +27,7 @@ describe('Weakref', function () {
var o = { foo: 'bar' }
, r = weak(o)
delete r.foo
- console.error(Object.getOwnPropertyNames(r));
- assert(!('foo' in r))
+ assert(!r.foo)
})
it('should proxy indexed gets to the target', function () {
@@ -62,7 +61,7 @@ describe('Weakref', function () {
it('should proxy enumeration', function () {
var o = { a: 'a', b: 'b', c: 'c', d: 'd' }
, r = weak(o)
- assert.deepEquals(Object.keys(o), Object.keys(r))
+ assert.deepEqual(Object.keys(o), Object.keys(r))
})
it('should act like an empty object after target is gc\'d'
@@ -72,7 +71,7 @@ describe('Weakref', function () {
o = null
assert.equal('bar', r.foo)
gc()
- assert(!('foo' in r))
+ assert(!r.foo)
assert.equal(0,Object.keys(r).length)
})

0 comments on commit ad056d8

Please sign in to comment.