Y
Hacker News
new
|
ask
|
show
|
jobs
by
rkv
3346 days ago
Try jsdom[1]? It returns a valid window object and stubs out events to allow DOM manipulation (amongst other things).
1.
https://github.com/tmpvar/jsdom