Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
chore(tests): cleanup the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Kurz <josh.kurz@turner.com>
  • Loading branch information
jkurz authored and joshkurz committed Apr 4, 2015
1 parent e2b66f3 commit ac5ea89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions calendar.min.js

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

15 changes: 14 additions & 1 deletion test/calendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ describe('uiCalendar', function () {
expect(calendarCtrl.changeWatcher).not.toBe(undefined);
});

<<<<<<< HEAD
it('should call the correct function when an event source is added or removed', function () {
=======
it('should make sure the correct function is called when an event source is added or removed', function () {
>>>>>>> chore(tests): cleanup the tests
var sourceWatcher = calendarCtrl.changeWatcher(scope.eventSources,calendarCtrl.sourceFingerprint);
expect(sourcesChanged).toBe(false);
sourceWatcher.subscribe(scope);
Expand All @@ -241,7 +245,11 @@ describe('uiCalendar', function () {
expect(sourcesChanged).toBe('removed');
});

<<<<<<< HEAD
it('should call the correct function when a single event is added or removed', function () {
=======
it('should make sure the correct function is called when a single event is added or removed', function () {
>>>>>>> chore(tests): cleanup the tests
var eventsWatcher = calendarCtrl.changeWatcher(calendarCtrl.allEvents,calendarCtrl.eventFingerprint);
expect(sourcesChanged).toBe(false);
eventsWatcher.subscribe(scope);
Expand Down Expand Up @@ -316,7 +324,7 @@ describe('uiCalendar', function () {
$compile('<div ui-calendar="uiConfig.calendar" calendar="myCalendar" ng-model="eventSources"></div>')(scope);
scope.$apply();
});

it('should make sure the calendar sets the myCalendar object to the calendarConfig', function () {
expect(config.calendars.myCalendar).not.toBe(undefined);
});
Expand Down Expand Up @@ -399,8 +407,13 @@ describe('uiCalendar', function () {
});
}));

<<<<<<< HEAD
it('should check that any function that already has an apply in it does not break the calendar (backwards compatible)', inject(function($timeout, $rootScope){

=======
it('should make sure that any function that already has an apply in it does not break the calendar (backwards compatible)', inject(function($timeout, $rootScope){

>>>>>>> chore(tests): cleanup the tests
var functionCount = 0;
scope.uiConfig = {
calendar:{
Expand Down

0 comments on commit ac5ea89

Please sign in to comment.