Skip to content

Instantly share code, notes, and snippets.

@Jon-Biz
Last active December 11, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jon-Biz/4659516 to your computer and use it in GitHub Desktop.
Save Jon-Biz/4659516 to your computer and use it in GitHub Desktop.
module start example
describe("A Page collection with fake data",function(){
var Data, Pages;
Data = App.module("Data");
Data.start();
beforeEach(function(){
var fakedata = [{"title":"Wine List"
,"description":"gallery"}]
Pages = new Data.PageCollection(fakedata);
});
it('should have a length other than zero',function(){
expect(Pages.length).not.toEqual(0);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment