From 090486c6ae44625fc2cce158b50285134a13f07f Mon Sep 17 00:00:00 2001 From: David Mears <60350599+david-mears-2@users.noreply.github.com> Date: Tue, 1 Mar 2022 12:25:23 +0000 Subject: [PATCH] Fix unit test on before validation rule This looks like it had accidentally not been changed after a copy-paste. --- test/unit/rules.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/rules.test.js b/test/unit/rules.test.js index f9f7625f..9c7319cd 100644 --- a/test/unit/rules.test.js +++ b/test/unit/rules.test.js @@ -112,7 +112,7 @@ describe('before', () => { it('passes with old date string', async () => expect(await rules.before({ value: 'January, 2000' })).toBe(true)) - it('fails with invalid value', async () => expect(await rules.after({ value: '' })).toBe(false)) + it('fails with invalid value', async () => expect(await rules.before({ value: '' })).toBe(false)) }) /**