An open API service indexing awesome lists of open source software.

https://github.com/munawwar/jquery-node

Browser-ish environment for nodejs unit testing
https://github.com/munawwar/jquery-node

Last synced: 16 days ago
JSON representation

Browser-ish environment for nodejs unit testing

Awesome Lists containing this project

README

          

jquery-node
========

Intention of this module is to bring a browser-ish environment to NodeJS so that unit testing can be made easier.

On Node
1. Creates a document using jsdom and make it available globally. To get window object use document.defaultView.
2. Initializes jquery using jsdom and exports it.

On browser
Returns jquery if AMD is being used.