backfill some stream.js specs
This commit is contained in:
parent
b736741ab8
commit
92c0fa0163
1 changed files with 15 additions and 0 deletions
|
|
@ -6,6 +6,21 @@ describe("app.Pages.Stream", function(){
|
||||||
expect(this.post).toBeTruthy()
|
expect(this.post).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
describe('postRenderTemplate', function(){
|
||||||
|
it("sets the background-image of #header", function(){
|
||||||
|
this.page.render()
|
||||||
|
console.log(this.page.$('#header').css('background-image'))
|
||||||
|
expect(this.page.$('#header').css('background-image')).toBeTruthy()
|
||||||
|
})
|
||||||
|
|
||||||
|
it('calls setUpHashChangeOnStreamLoad', function(){
|
||||||
|
spyOn(this.page, 'setUpHashChangeOnStreamLoad')
|
||||||
|
this.page.render();
|
||||||
|
expect(this.page.setUpHashChangeOnStreamLoad).toHaveBeenCalled()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe("rendering", function(){
|
describe("rendering", function(){
|
||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
this.page.render()
|
this.page.render()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue