From 9da3cbd6d8eb953920b36bb283e227d01fc1e695 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 31 Aug 2022 10:59:58 +0300 Subject: [PATCH] Fixed jest tests (#4887) * Fixed jest tests & one cypress test * Updated headers --- cvat-core/.eslintrc.js | 1 + cvat-core/tests/api/annotations.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cvat-core/.eslintrc.js b/cvat-core/.eslintrc.js index 1a036f8d..8e110cff 100644 --- a/cvat-core/.eslintrc.js +++ b/cvat-core/.eslintrc.js @@ -19,6 +19,7 @@ module.exports = { project: './tsconfig.json', tsconfigRootDir: __dirname, }, + ignorePatterns: ['tests/**/*.js'], plugins: ['jest'], rules: { 'jest/no-disabled-tests': 'warn', diff --git a/cvat-core/tests/api/annotations.js b/cvat-core/tests/api/annotations.js index 47ba508b..f07d9e18 100644 --- a/cvat-core/tests/api/annotations.js +++ b/cvat-core/tests/api/annotations.js @@ -1,4 +1,5 @@ // Copyright (C) 2020-2022 Intel Corporation +// Copyright (C) 2022 CVAT.ai Corp // // SPDX-License-Identifier: MIT @@ -613,6 +614,7 @@ describe('Feature: merge annotations', () => { name: 'new_label', attributes: [], }); + await states[1].save(); expect(task.annotations.merge(states)).rejects.toThrow(window.cvat.exceptions.ArgumentError); });