Skip to content

Commit

Permalink
EPMRPP-90697 || merge develop to organization
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed May 6, 2024
1 parent 8fa4fac commit 3611c2b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
global: {
branches: 60,
functions: 60,
lines: 59,
lines: 60,
statements: 60,
},
},
Expand Down
23 changes: 23 additions & 0 deletions app/src/common/utils/getWeekRange.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2024 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { getWeekRange } from './getWeekRange';

describe('getWeekRange', () => {
test('should convert correctly week range', () => {
expect(getWeekRange(new Date(2022, 2, 22))).toEqual('2022-03-Tu - 2022-03-Tu');
});
});

0 comments on commit 3611c2b

Please sign in to comment.