Skip to content

Commit

Permalink
updated unitTest
Browse files Browse the repository at this point in the history
Refs: #6849
  • Loading branch information
AlexanderSchmidtCE committed Sep 27, 2024
1 parent 84343c3 commit 26229e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ describe('InputDateController', () => {
expect(InputDateController.tryParseToString(TEST_DATE, 'time', 10)).toBe('03:02:01');
});

it('throws an Error for type week', () => {
expect(() => InputDateController.tryParseToString(TEST_DATE, 'week')).toThrowError('Auto convert to week is not supported!');
it('returns a ISO8601 week string for typeweek', () => {
expect(InputDateController.tryParseToString(TEST_DATE, 'week')).toBe('2020-W10');
});
});
});
Expand Down

0 comments on commit 26229e0

Please sign in to comment.