Merge pull request #3106 from alphagov/add-js-tests-for-preview-pane

Add js tests for preview pane
This commit is contained in:
Tom Byers
2019-10-23 15:22:23 +01:00
committed by GitHub
6 changed files with 340 additions and 16 deletions

View File

@@ -1,9 +1,8 @@
(function () {
(function (global) {
'use strict';
const root = this,
$ = this.jQuery;
$ = global.jQuery;
let branding_style = $('.multiple-choice input[name="branding_style"]:checked');
@@ -34,4 +33,4 @@
$form.find('button[type="submit"]').text('Save');
$('fieldset').on('change', 'input[name="branding_style"]', setPreviewPane);
})();
})(window);