Commit e0347ee6 authored by Winnie Hellmann's avatar Winnie Hellmann

Replace jasmine.createSpy() with jest.fn()

(cherry picked from commit e658b337)
parent 93076c34
......@@ -31,7 +31,7 @@ describe('ErrorTrackingList', () => {
actions = {
getErrorList: () => {},
startPolling: () => {},
restartPolling: jasmine.createSpy('restartPolling'),
restartPolling: jest.fn().mockName('restartPolling'),
};
const state = {
......
......@@ -8,7 +8,7 @@ describe('Multi-file editor library disposable class', () => {
instance = new Disposable();
disposableClass = {
dispose: jasmine.createSpy('dispose'),
dispose: jest.fn().mockName('dispose'),
};
});
......
......@@ -13,7 +13,7 @@ describe('EmojiMenu', () => {
let dummyEmojiList;
beforeEach(() => {
dummySelectEmojiCallback = jasmine.createSpy('dummySelectEmojiCallback');
dummySelectEmojiCallback = jest.fn().mockName('dummySelectEmojiCallback');
dummyEmojiList = {
glEmojiTag() {
return dummyEmojiTag;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment