Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Updated Jasmine tests to reflect slightly modified logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dodge committed Mar 31, 2015
1 parent 2b85ab6 commit 31bc8c0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ describe("NotificationPaneView", function(){
});

it("sets collection url new value after calling markNotificationsRead function", function(){
// cdodge: we changed behavior of clicking 'mark as read' to only
// fetch data when we actually have unread notifications
this.notification_pane.collection.add({'foo': 'bar'});
this.mark_notifications_read_target.click();
expect(this.notification_pane.collection.url).toContain('/mark/as/read');
});
Expand Down

0 comments on commit 31bc8c0

Please sign in to comment.