From abf988c00bfd16afa3f662cbfb06eabbe133b330 Mon Sep 17 00:00:00 2001 From: Josh Hanley Date: Fri, 20 Dec 2024 14:42:22 +1100 Subject: [PATCH] Add a test --- tests/cypress/integration/plugins/mask.spec.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/cypress/integration/plugins/mask.spec.js b/tests/cypress/integration/plugins/mask.spec.js index 1046e3e0b..20d26e5ea 100644 --- a/tests/cypress/integration/plugins/mask.spec.js +++ b/tests/cypress/integration/plugins/mask.spec.js @@ -89,6 +89,21 @@ test('x-mask with x-model with initial value', }, ) +test('x-mask with x-model if initial value is null it should remain null', + [html` +
+ + + +
+ `], + ({ get }) => { + get('#1').should(haveValue('')) + get('#2').should(haveValue('')) + get('#3').contains('NULL') + }, +) + test('x-mask with a falsy input', [html``], ({ get }) => {