Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
chore: upgrade calendar-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Dec 30, 2017
1 parent 44d710a commit faaac8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -20,7 +20,7 @@
"angular": "^1.6.8",
"angular-mocks": "^1.6.8",
"bootstrap": "^3.3.6",
"calendar-utils": "0.0.59",
"calendar-utils": "0.0.60",
"codecov-lite": "^0.1.3",
"commitizen": "^2.9.2",
"concurrently": "^3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/services/calendarHelper.js
Expand Up @@ -223,7 +223,7 @@ angular

return calendarUtilsEvent;
})
}).map(function(eventRow) {
}).eventRows.map(function(eventRow) {

eventRow.row = eventRow.row.map(function(rowEvent) {
rowEvent.event = rowEvent.event.originalEvent;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/directives/mwlCalendarWeek.spec.js
Expand Up @@ -89,13 +89,13 @@ describe('mwlCalendarWeek directive', function() {

it('should get the new week view when calendar refreshes', function() {
sinon.stub(calendarHelper, 'getDayViewHeight').returns(1000);
sinon.stub(calendarHelper, 'getWeekView').returns({event: 'event1'});
sinon.stub(calendarHelper, 'getWeekView').returns({eventRows: [{event: 'event1'}]});
sinon.stub(calendarHelper, 'getWeekViewWithTimes').returns({event: 'event2'});
scope.$broadcast('calendar.refreshView');
expect(calendarHelper.getDayViewHeight).to.have.been.calledWith('06:00', '22:59', 30);
expect(MwlCalendarCtrl.dayViewHeight).to.equal(1000);
expect(calendarHelper.getWeekView).to.have.been.calledWith(scope.events, scope.viewDate);
expect(MwlCalendarCtrl.view).to.eql({event: 'event1'});
expect(MwlCalendarCtrl.view).to.eql({eventRows: [{event: 'event1'}]});

MwlCalendarCtrl.showTimes = true;
scope.$broadcast('calendar.refreshView');
Expand Down

0 comments on commit faaac8f

Please sign in to comment.