repo for angularjs testing training
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
601 B

'use strict';
describe('Services - Validate Date Service', function() {
var validateDateService;
beforeEach(function() {
module('book-inventory-app.services');
inject(function(ValidateDateService) {
validateDateService = ValidateDateService;
});
});
it('should return true for a valid date input', function() {
expect(validateDateService.isValidDate('1/1/2016')).equal(true);
});
it ('should return false for an invalid date input', function() {
expect(validateDateService.isValidDate('ABC')).equal(false);
});
});