Remove parenthesis on expectedParams
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1a87eb3085
commit
b576c0ad69
|
@ -1,6 +1,6 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
|
||||||
describe('Route Component vnRoute', () => {
|
fdescribe('Route Component vnRoute', () => {
|
||||||
let controller;
|
let controller;
|
||||||
|
|
||||||
beforeEach(ngModule('route'));
|
beforeEach(ngModule('route'));
|
||||||
|
@ -21,11 +21,11 @@ describe('Route Component vnRoute', () => {
|
||||||
to.setDate(to.getDate() + params.scopeDays);
|
to.setDate(to.getDate() + params.scopeDays);
|
||||||
to.setHours(23, 59, 59, 999);
|
to.setHours(23, 59, 59, 999);
|
||||||
|
|
||||||
const expectedParams = ({
|
const expectedParams = {
|
||||||
from,
|
from,
|
||||||
scopeDays: params.scopeDays,
|
scopeDays: params.scopeDays,
|
||||||
to
|
to
|
||||||
});
|
};
|
||||||
|
|
||||||
expect(params).toEqual(expectedParams);
|
expect(params).toEqual(expectedParams);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue