From 3a39dfd07d55cf4bf5e72f968cb503371eba3f63 Mon Sep 17 00:00:00 2001 From: joakin Date: Tue, 25 Apr 2017 13:56:22 +0200 Subject: [PATCH] Hygiene: Clear global stub after the test Bug: T160406 Change-Id: I3d8b644a3be12841ba31402fa12dd71e100dbed4 --- tests/node-qunit/previewBehavior.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/node-qunit/previewBehavior.test.js b/tests/node-qunit/previewBehavior.test.js index 98ac93fde..a1a77c61e 100644 --- a/tests/node-qunit/previewBehavior.test.js +++ b/tests/node-qunit/previewBehavior.test.js @@ -9,6 +9,9 @@ QUnit.module( 'ext.popups.preview.settingsBehavior', { mediaWiki.Title = { newFromText: newFromText }; /* global Map */ this.config = new Map(); + }, + afterEach: function () { + mediaWiki.Title = null; } } );