Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaroldi committed Jun 5, 2024
1 parent 5141fe3 commit e2bebaf
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ describe('Content Model Auto Format Plugin Test', () => {
changeSource: 'AutoFormat',
apiName: formatOptions.apiName,
});
const triggerEvent = spyOn(editor, 'triggerEvent');
expect(triggerEvent).toHaveBeenCalledWith('contentChanged', {
expect(triggerEventSpy).toHaveBeenCalledWith('contentChanged', {
source: 'AutoFormat',
formatApiName: formatOptions.apiName,
});
Expand Down Expand Up @@ -321,8 +320,8 @@ describe('Content Model Auto Format Plugin Test', () => {
}
);
});
const triggerEvent = spyOn(editor, 'triggerEvent');
expect(triggerEvent).toHaveBeenCalledWith('contentChanged', {

expect(triggerEventSpy).toHaveBeenCalledWith('contentChanged', {
source: 'AutoLink',
formatApiName: '',
});
Expand Down Expand Up @@ -403,8 +402,7 @@ describe('Content Model Auto Format Plugin Test', () => {
changeSource: 'AutoFormat',
apiName: formatOption.apiName,
});
const triggerEvent = spyOn(editor, 'triggerEvent');
expect(triggerEvent).toHaveBeenCalledWith('contentChanged', {
expect(triggerEventSpy).toHaveBeenCalledWith('contentChanged', {
source: 'AutoFormat',
formatApiName: formatOption.apiName,
});
Expand Down Expand Up @@ -488,8 +486,8 @@ describe('Content Model Auto Format Plugin Test', () => {
changeSource: 'AutoFormat',
apiName: formatOption.apiName,
});
const triggerEvent = spyOn(editor, 'triggerEvent');
expect(triggerEvent).toHaveBeenCalledWith('contentChanged', {

expect(triggerEventSpy).toHaveBeenCalledWith('contentChanged', {
source: 'AutoFormat',
formatApiName: formatOption.apiName,
});
Expand Down Expand Up @@ -559,8 +557,8 @@ describe('Content Model Auto Format Plugin Test', () => {
changeSource: 'AutoFormat',
apiName: formatOption.apiName,
});
const triggerEvent = spyOn(editor, 'triggerEvent');
expect(triggerEvent).toHaveBeenCalledWith('contentChanged', {

expect(triggerEventSpy).toHaveBeenCalledWith('contentChanged', {
source: 'AutoFormat',
formatApiName: formatOption.apiName,
});
Expand Down

0 comments on commit e2bebaf

Please sign in to comment.