Răsfoiți Sursa

Add clock restore in test with fake timers

jacekczapiewski 5 ani în urmă
părinte
comite
ccea270f52

+ 2 - 0
packages/ckeditor-cloud-services-core/tests/token/token.js

@@ -95,6 +95,8 @@ describe( 'Token', () => {
 			await clock.tickAsync( 1800000 );
 
 			expect( requests ).to.be.empty;
+
+			clock.restore();
 		} );
 
 		it( 'should refresh token with time specified in token `exp` payload property', async () => {