Fix incorrect jasmine spy usage.. GREEN?
This commit is contained in:
parent
09ac4c789e
commit
73680a54e5
1 changed files with 2 additions and 1 deletions
|
|
@ -5,9 +5,10 @@
|
||||||
describe("Diaspora", function() {
|
describe("Diaspora", function() {
|
||||||
describe("widgets", function() {
|
describe("widgets", function() {
|
||||||
describe("notifications", function() {
|
describe("notifications", function() {
|
||||||
var changeNotificationCountSpy = spyOn(Diaspora.widgets.notifications.changeNotificationCount);
|
var changeNotificationCountSpy;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
|
changeNotificationCountSpy = spyOn(Diaspora.widgets.notifications, "changeNotificationCount").andCallThrough();
|
||||||
$("#jasmine_content").html("<div id='notifications'></div>");
|
$("#jasmine_content").html("<div id='notifications'></div>");
|
||||||
Diaspora.widgets.notifications.start();
|
Diaspora.widgets.notifications.start();
|
||||||
changeNotificationCountSpy.reset();
|
changeNotificationCountSpy.reset();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue