Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Dec 2, 2024
1 parent 1cb77e8 commit ea10516
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ describe('PostingsMarkdownEditor', () => {
findLectureWithDetailsSpy.mockReturnValue(returnValue);
fixture.autoDetectChanges();
mockMarkdownEditorComponent = fixture.debugElement.query(By.directive(MarkdownEditorMonacoComponent)).componentInstance;
mockMarkdownEditorComponent.monacoEditor.getPosition = jest.fn();
mockMarkdownEditorComponent.monacoEditor.getModel = jest.fn();
component.ngOnInit();
component.content = metisPostExerciseUser1.content;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('MonacoEditorActionIntegration', () => {
const action = new OrderedListAction();
comp.registerAction(action);
action.executeInCurrentEditor();
expect(comp.getText()).toBe('1. ');
expect(comp.getText()).toBe('1. ');
});

it.each([1, 2, 3])('Should toggle heading %i on selected line', (headingLevel) => {
Expand Down

0 comments on commit ea10516

Please sign in to comment.