Fixed jest tests (#4887)

* Fixed jest tests & one cypress test

* Updated headers
main
Boris Sekachev 4 years ago committed by GitHub
parent 738792c285
commit 9da3cbd6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,6 +19,7 @@ module.exports = {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
ignorePatterns: ['tests/**/*.js'],
plugins: ['jest'],
rules: {
'jest/no-disabled-tests': 'warn',

@ -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);
});

Loading…
Cancel
Save