UNPKG
assertvanish
Version:
latest (0.0.3-1)
0.0.3-1
0.0.2-2
0.0.2-1
0.0.1-3
0.0.1-2
0.0.1-1
assert that an object will vanish
github.com/thejh/node-assertvanish
thejh/node-assertvanish
assertvanish
/
test.coffee
20 lines
(13 loc)
•
270 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
assertVanish =
require
'./index'
console
.
error
"vanish assertions are active: #{assertVanish.active}"
qux = [] foo = -> a = {} assertVanish a,
4000
a bar = (b) -> qux.
push
b bar
foo
()
setInterval
->
console
.
error
"#{qux.length} elements in `qux`"
,
1000