Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
- Remove unused import
- Add eslint ignore comment to accept empty function as an argument in tests
  • Loading branch information
fakeJan499 committed Dec 3, 2024
1 parent 7690d39 commit f6237d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { TestBed } from '@angular/core/testing';
import { mergeConfigs, NGX_ERROR_MSG_CONFIG, NgxErrorMsgConfig } from '../data/config';
import { defaultCtx } from '../data/context';
import { ErrorMessageMappings, mergeMappings, NGX_ERROR_MSG_MAPPINGS } from '../data/mappings';
import { ErrorMessageConcatenationService } from '../mappers/error-messages-concatenation.service';
import { ErrorsToErrorMessagesMapperService } from '../mappers/errors-to-error-messages-mapper.service';
import { MappedMessage } from '../mappers/types';
import { getTestScheduler } from '../testing/get-test-scheduler';
import { mockConfig } from '../testing/mock-config';
import { NgxErrorMsgDirService } from './ngx-error-msg-dir.service';
import { mockCtx } from '../testing/mock-ctx';
import { defaultCtx } from '../data/context';

describe('NgxErrorMsgDirService', () => {
let service: NgxErrorMsgDirService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('isNullable', () => {
});

it('should return false for a function', () => {
// eslint-disable-next-line @typescript-eslint/no-empty-function
expect(isNullable(() => {})).toBe(false);
});
});

0 comments on commit f6237d9

Please sign in to comment.