1 import { isNotExistError } from '@proton/shared/lib/api/helpers/apiErrorHelper';
3 describe('isNotExistError', () => {
4 it('should be a not exist error', () => {
12 // Message does not exists
19 // Conversation does not exists
26 expect(isNotExistError(error1)).toBeTruthy();
27 expect(isNotExistError(error2)).toBeTruthy();
28 expect(isNotExistError(error3)).toBeTruthy();
31 it('should not be a not exist error', () => {
36 Code: 'something else',
44 expect(isNotExistError(error1)).toBeFalsy();
45 expect(isNotExistError(error2)).toBeFalsy();
46 expect(isNotExistError(error3)).toBeFalsy();