Changed name of value on scope days test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
811edc054b
commit
4f644cb708
|
@ -49,13 +49,13 @@ describe('Route Component vnRoute', () => {
|
||||||
expect(params.scopeDays).toEqual(2);
|
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({
|
let params = controller.fetchParams({
|
||||||
scopeDays: 'prueba'
|
scopeDays: 'ScopeDayNoNumber'
|
||||||
});
|
});
|
||||||
if (typeof params.scopeDays !== 'number')
|
if (typeof params.scopeDays !== 'number')
|
||||||
|
|
||||||
expect(params.scopeDays).toBe('prueba');
|
expect(params.scopeDays).toBe('ScopeDayNoNumber');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue