Skip to content

Commit

Permalink
[#111] Fix tests broken in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyChop committed Nov 23, 2016
1 parent 5c4b7ea commit 08ff541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/js/view-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ describe('The beverages view', () => {

it('displays an error message if no options are provided', () => {
const view = new BeveragesView().render();
expect(view.$('.alert-danger').hasClass('up')).toBe(false);
expect(view.$('.bubble.error').hasClass('up')).toBe(false);
});

it('displays an error message if no Google Sheet ID is provided', () => {
const view = new BeveragesView({el: '#beverages'}).render();
expect(view.$('.alert-danger').hasClass('up')).toBe(false);
expect(view.$('.bubble.error').hasClass('up')).toBe(false);
});

it('doesn\'t display an error message if a Google Sheet ID is provided', () => {
const view = new BeveragesView({
el: '#beverages',
gSheetId: 'something'
}).render();
expect(view.$('.alert-danger').hasClass('up')).toBe(true);
expect(view.$('.bubble.error').hasClass('up')).toBe(true);
});

it('removes previous rivets binding if rendering is called several times', () => {
Expand Down

0 comments on commit 08ff541

Please sign in to comment.