From f7cb33de9ab563e7b73aceab742371f1270c38ae Mon Sep 17 00:00:00 2001 From: Jeff Cunat Date: Tue, 16 Jun 2020 09:00:13 +0200 Subject: [PATCH] modify multi captions test to ease multiple configuration (default, domStorage, initial settings...) --- test/unit/streaming.text.TextController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/streaming.text.TextController.js b/test/unit/streaming.text.TextController.js index 9f3a6f4b53..1bc727230f 100644 --- a/test/unit/streaming.text.TextController.js +++ b/test/unit/streaming.text.TextController.js @@ -40,7 +40,7 @@ describe('TextController', function () { }); afterEach(function () { - if (global !== window) { + if (typeof window !== 'undefined' && global !== window) { delete global.document; } });