mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-21 12:30:17 +08:00
19 lines
364 B
JavaScript
19 lines
364 B
JavaScript
|
|
describe('handleWindowResize', function() {
|
|
|
|
beforeEach(function() {
|
|
affix('#cal');
|
|
});
|
|
|
|
describe('When default is used, should fire resize event', function() {
|
|
it('should fire resize', function() {
|
|
var resized = 0;
|
|
$('#cal').fullCalendar({
|
|
windowResize: function(view) {
|
|
resized++;
|
|
}
|
|
});
|
|
expect(resized).toEqual(1);
|
|
});
|
|
});
|
|
}); |