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; } } );