From 06af0c6c53204e67cd5af84334f7c67b2a804982 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Thu, 2 Nov 2017 10:37:27 +0100 Subject: [PATCH] Tests: Restored stub since we want to mask submit function with input[name="submit"]. --- tests/editor/standardeditor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/editor/standardeditor.js b/tests/editor/standardeditor.js index 4672271f..dd442909 100644 --- a/tests/editor/standardeditor.js +++ b/tests/editor/standardeditor.js @@ -345,6 +345,9 @@ describe( 'StandardEditor', () => { } ); it( 'should not replace submit() method when one of the elements in a form is named "submit"', () => { + // Restore stub since we want to mask submit function with input with name="submit". + submitStub.restore(); + const input = document.createElement( 'input' ); input.setAttribute( 'name', 'submit' ); form.appendChild( input );