Changed name of value on scope days test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Padawan 2021-02-01 13:13:18 +01:00
parent 811edc054b
commit 4f644cb708
1 changed files with 3 additions and 3 deletions

View File

@ -49,13 +49,13 @@ describe('Route Component vnRoute', () => {
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 has 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');
});
});
});