8
0
Quellcode durchsuchen

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

Kamil Piechaczek vor 6 Jahren
Ursprung
Commit
a8b4355e72
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 );