Skip to content

Commit 2aaaeb8

Browse files
committed
test: fix tests for real
1 parent 013c98b commit 2aaaeb8

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

test/calendar-day-view.component.spec.ts

+3-13
Original file line numberDiff line numberDiff line change
@@ -1255,19 +1255,9 @@ describe('CalendarDayViewComponent component', () => {
12551255
fixture.componentInstance.ngOnChanges({ viewDate: {} });
12561256
const {
12571257
period: { events },
1258-
allDayEvents
1259-
} = beforeViewRenderCalled.getCall(0).args[0].body;
1260-
expect(events).to.deep.equal([
1261-
{
1262-
event: fixture.componentInstance.events[0],
1263-
endsAfterDay: true,
1264-
startsBeforeDay: true,
1265-
height: 1439,
1266-
top: 0,
1267-
left: 0,
1268-
width: 150
1269-
}
1270-
]);
1258+
body: { allDayEvents }
1259+
} = beforeViewRenderCalled.getCall(0).args[0];
1260+
expect(events).to.deep.equal([fixture.componentInstance.events[0]]);
12711261
expect(allDayEvents).to.deep.equal([fixture.componentInstance.events[1]]);
12721262
});
12731263
});

0 commit comments

Comments
 (0)