Explorar el Código

Add this.clock.restore() to TutorialHandlerTests (#17191)

GitOrigin-RevId: 25fd72019cdec17058636bb8c738b24cbb6c4305
Alf Eaton hace 2 años
padre
commit
bafc2189e3
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      services/web/test/unit/src/Tutorial/TutorialHandlerTests.js

+ 4 - 0
services/web/test/unit/src/Tutorial/TutorialHandlerTests.js

@@ -41,6 +41,10 @@ describe('TutorialHandler', function () {
     })
   })
 
+  afterEach(function () {
+    this.clock.restore()
+  })
+
   describe('getInactiveTutorials', function () {
     it('returns all recorded tutorials except when they were posponed long ago', function () {
       const hiddenTutorials = this.TutorialHandler.getInactiveTutorials(