Changed scope days value to a correct sentence

This commit is contained in:
Jorge Padawan 2021-02-01 13:29:12 +01:00
parent 6bba5ec126
commit e1db173185
1 changed files with 3 additions and 3 deletions

View File

@ -49,13 +49,13 @@ describe('Travel Component vnTravel', () => {
expect(params.scopeDays).toEqual(2);
});
it('should throw an error when scope days has a string value', () => {
it('should throw an error when scope days is not equal a number', () => {
let params = controller.fetchParams({
scopeDays: 'prueba'
scopeDays: 'ScopeDayNoNumber'
});
if (typeof params.scopeDays !== 'number')
expect(params.scopeDays).toBe('prueba');
expect(params.scopeDays).toBe('ScopeDayNoNumber');
});
});
});