Open mortonfox opened 7 years ago
Warnings | |
---|---|
:warning: | Please assign someone to merge this PR, and optionally include people who should review. |
Line | Typo |
---|---|
1 | # benv |
3 | test your client-side code in node.js. |
11 | ./client/app.js**** |
48 | g-side our server-side tests? Benv is a library of test helpers |
54 | ### benv.setup(callback, options) |
56 | ptional options are passed to jsdom.env. In particular, if your code m |
56 | articular, if your code makes ajax requests then you must pass ` |
58 | ### benv.expose(globals) |
58 | ### benv.expose(globals) |
60 | obal App namespace and uses jQuery. This should be run after `be |
72 | ### benv.teardown(clearDOM = false) |
72 | ### benv.teardown(clearDOM = false) |
74 | Clean up the globals exposed by setup and `expos |
76 | w, document`, and other DOM globals. This isn't enabled by defaul |
76 | aries cache references to DOM globals and don't work so nicely when |
76 | o nicely when trying to clear globals and re-require these libs. |
78 | ### benv.require(filename, globalVarName) |
78 | ### benv.require(filename, globalVarName) |
80 | For non-commonjs wrapped libraries, benv.requi |
80 | n-commonjs wrapped libraries, benv.require will export the global variab |
80 | ched to window. For instance [zepto](https://github.com/madrobby/ |
90 | Benv is backed by jsdom and **benv.render** will remove any script tags |
104 | ### benv.requireWithJadeify(filename, varNames) |
104 | .requireWithJadeify(filename, varNames) |
106 | For those using [jadeify](https://github.com/OliverJAs |
106 | ng client-side code that uses jadeify it will throw an error becaus |
108 | avoid this error and test the jadeified templates in node again. |
110 | ### benv.requireWithPugify(filename, varNames) |
110 | v.requireWithPugify(filename, varNames) |
112 | For those using [pugify](https://github.com/sidorares |
112 | ng client-side code that uses pugify it will throw an error becaus |
114 | avoid this error and test the pugified templates in node again. |
Generated by :no_entry_sign: dangerJS
http://visionmedia.github.io/mocha/ is no longer a working URL. The new website for Mocha is http://mochajs.org/