Skip to content

AngularJS compiled with jsdom and provided as a CommonJS module. Intended for testing AngularJS code without depending on a browser.

Notifications You must be signed in to change notification settings

tomyam1/angular

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular for node

Build Status

Inspired by bclinkinbeard's angular with a lot of changes for a private use case:

  • Different entry point for browserify that exports the already loaded angular (from window.angular).

  • We require the angular source instead of evaling it, to have meaningful stack traces.

  • We load several more modules: jquery, angular-mocks, angular-sanitize and jasmine-jquery. jasmine-jquery is loaded only when testing, determined by if global.jasmine is defined.

  • For each module, we have an env variable that determines the location from which its loaded. The module is only loaded if the env variable is defined:

    • TP_JQUERY_PATH
    • TP_ANGULAR_PATH
    • TP_ANGULAR_MOCKS_PATH
    • TP_ANGULAR_SANITIZE_PATH
    • TP_JASMINE_JQUERY_PATH
  • We use mocha/chai for testing instead of tape.

  • We use bower to get angular (but only for testing) instead of a custom script.

About

AngularJS compiled with jsdom and provided as a CommonJS module. Intended for testing AngularJS code without depending on a browser.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%