Skip to content

Stubs out necessary properties in Backbone.history to run outside of browser.

Notifications You must be signed in to change notification settings

jisaacks/Backbone.HistoryStub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone.HistoryStub

Stubs out necessary properties in Backbone.history and the global namespace (i.e. window, document) to allow Backbone.history to run outside of browser. ( Mainly for testing purposes )

Usage

Install the node package: npm install backbone.history_stub

Then stub before calling Backbone.history.start():

require("backbone.history_stub").stub();
Backbone.history.start();

Contributing

Add specs for any new functionality. To run the specs:

  • Install jasmine-node: npm install -g jasmine-node
  • Run specs: jasmine-node spec/

About

Stubs out necessary properties in Backbone.history to run outside of browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published