Commit e658b337 authored by Winnie Hellmann's avatar Winnie Hellmann

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

parent cb892da6
...@@ -31,7 +31,7 @@ describe('ErrorTrackingList', () => { ...@@ -31,7 +31,7 @@ describe('ErrorTrackingList', () => {
actions = { actions = {
getErrorList: () => {}, getErrorList: () => {},
startPolling: () => {}, startPolling: () => {},
restartPolling: jasmine.createSpy('restartPolling'), restartPolling: jest.fn().mockName('restartPolling'),
}; };
const state = { const state = {
......
...@@ -8,7 +8,7 @@ describe('Multi-file editor library disposable class', () => { ...@@ -8,7 +8,7 @@ describe('Multi-file editor library disposable class', () => {
instance = new Disposable(); instance = new Disposable();
disposableClass = { disposableClass = {
dispose: jasmine.createSpy('dispose'), dispose: jest.fn().mockName('dispose'),
}; };
}); });
......
...@@ -13,7 +13,7 @@ describe('EmojiMenu', () => { ...@@ -13,7 +13,7 @@ describe('EmojiMenu', () => {
let dummyEmojiList; let dummyEmojiList;
beforeEach(() => { beforeEach(() => {
dummySelectEmojiCallback = jasmine.createSpy('dummySelectEmojiCallback'); dummySelectEmojiCallback = jest.fn().mockName('dummySelectEmojiCallback');
dummyEmojiList = { dummyEmojiList = {
glEmojiTag() { glEmojiTag() {
return dummyEmojiTag; 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