Remove parenthesis on expectedParams
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Padawan 2021-02-02 13:12:54 +01:00
parent 218a19d7da
commit b57578f933
2 changed files with 4 additions and 4 deletions

View File

@ -21,11 +21,11 @@ describe('Route Component vnRoute', () => {
to.setDate(to.getDate() + params.scopeDays);
to.setHours(23, 59, 59, 999);
const expectedParams = ({
const expectedParams = {
from,
scopeDays: params.scopeDays,
to
});
};
expect(params).toEqual(expectedParams);
});

View File

@ -21,11 +21,11 @@ describe('Travel Component vnTravel', () => {
shippedTo.setDate(shippedTo.getDate() + params.scopeDays);
shippedTo.setHours(23, 59, 59, 999);
const expectedParams = ({
const expectedParams = {
shippedFrom,
scopeDays: params.scopeDays,
shippedTo
});
};
expect(params).toEqual(expectedParams);
});