Fix jasmine spec
This commit is contained in:
parent
b14ac9606f
commit
ae22dcc274
1 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ describe("Publisher", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('gets called on initialize', function(){
|
it('gets called on initialize', function(){
|
||||||
spyOn(Publisher, 'bindPublicIcon');
|
spyOn(Publisher, 'bindPublicIcon');
|
||||||
Publisher.initialize();
|
Publisher.initialize();
|
||||||
expect(Publisher.bindPublicIcon).toHaveBeenCalled();
|
expect(Publisher.bindPublicIcon).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
@ -55,7 +55,7 @@ describe("Publisher", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('gets called on initialize', function(){
|
it('gets called on initialize', function(){
|
||||||
spyOn(Publisher, 'bindServiceIcons');
|
spyOn(Publisher, 'bindServiceIcons');
|
||||||
Publisher.initialize();
|
Publisher.initialize();
|
||||||
expect(Publisher.bindServiceIcons).toHaveBeenCalled();
|
expect(Publisher.bindServiceIcons).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
@ -141,8 +141,8 @@ describe("Publisher", function() {
|
||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
spec.loadFixture('aspects_index_prefill');
|
spec.loadFixture('aspects_index_prefill');
|
||||||
});
|
});
|
||||||
it("returns the status_message_fake_message textarea", function(){
|
it("returns the status_message_fake_text textarea", function(){
|
||||||
expect(Publisher.input()[0].id).toBe('status_message_fake_message');
|
expect(Publisher.input()[0].id).toBe('status_message_fake_text');
|
||||||
expect(Publisher.input().length).toBe(1);
|
expect(Publisher.input().length).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue