From 09277d6c629a34b0c34d9d743f37250abdb6a5e3 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Mon, 8 Jul 2024 18:37:17 -0500 Subject: [PATCH] test: Add `utils.booleanParser` tests (#268) --- spec/utils.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/utils.spec.js diff --git a/spec/utils.spec.js b/spec/utils.spec.js new file mode 100644 index 0000000..095aba5 --- /dev/null +++ b/spec/utils.spec.js @@ -0,0 +1,10 @@ +import { booleanParser } from '../src/utils.js'; + +describe('utils', () => { + it('booleanParser', () => { + expect(booleanParser(true)).toBe(true); + expect(booleanParser('true')).toBe(true); + expect(booleanParser('1')).toBe(true); + expect(booleanParser('false')).toBe(false); + }); +});