I am trying to convert to running my headless Mocha tests in jsdom in stead of Phantom, but I have run into a problem in that "this" does not refer to window. This, for instance, breaks Modernizr, which referes to the global environment by 'this'. It would work in Node, but it seems 'this' refers to something else than 'global' when the scripts are running in jsdom.So I was wondering if I can set 'this' to refer to something else when running the scripts?
--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsdom+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.