8
0
Просмотр исходного кода

Tests: Use proper Sinon method for stubbing a function. Closes ckeditor/ckeditor5#6057.

Kamil Piechaczek 6 лет назад
Родитель
Сommit
a8b4355e72
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-mention/tests/mentionui.js

+ 1 - 1
packages/ckeditor5-mention/tests/mentionui.js

@@ -1232,7 +1232,7 @@ describe( 'MentionUI', () => {
 
 				feedCallbackStub.returns( Promise.reject( 'Request timeout' ) );
 
-				const warnSpy = sinon.spy( console, 'warn' );
+				const warnSpy = sinon.stub( console, 'warn' );
 				const eventSpy = sinon.spy();
 				mentionUI.on( 'requestFeed:error', eventSpy );