Skip to content

Commit

Permalink
Fixes server/modules/formatter tests (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalsas authored Aug 16, 2023
1 parent 8b65a29 commit 7560578
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/server/modules/__tests__/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ import { Position, TextEdit } from 'vscode-languageserver-types';
import { Notification } from '../../types';
import { FormatterModule } from '../formatter';

const mockContext = serverMocks.getContext();
const mockLogger = serverMocks.getLogger();
let mockContext = serverMocks.getContext();
let mockLogger = serverMocks.getLogger();

describe('FormatterModule', () => {
beforeEach(() => {
jest.restoreAllMocks();
mockContext = serverMocks.getContext();
mockContext.__options.validate = [];
jest.clearAllMocks();
mockLogger = serverMocks.getLogger();
});

test('should be constructable', () => {
Expand Down

0 comments on commit 7560578

Please sign in to comment.