Merge pull request #3110 from alphagov/add-js-tests-for-update-content

Add JS tests for update content
This commit is contained in:
Tom Byers
2019-10-23 15:12:55 +01:00
committed by GitHub
4 changed files with 253 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
(function(Modules) {
(function(global) {
"use strict";
var queues = {};
var dd = new diffDOM();
var dd = new global.diffDOM();
var getRenderer = $component => response => dd.apply(
$component.get(0),
@@ -43,7 +43,7 @@
);
};
Modules.UpdateContent = function() {
global.GOVUK.Modules.UpdateContent = function() {
this.start = component => poll(
getRenderer($(component)),
@@ -55,4 +55,4 @@
};
})(window.GOVUK.Modules);
})(window);