backbone.history_stub

0.0.1 • Public • Published

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.

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/

Readme

Keywords

none

Package Sidebar

Install

npm i backbone.history_stub

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • jisaacks