From 6905d14273642eee92626b9c2561e84c20b225f5 Mon Sep 17 00:00:00 2001 From: Sam Blacklock Date: Wed, 18 Mar 2026 09:25:51 +0000 Subject: [PATCH] chore: add is_null test --- test/utils/formatQueryString.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/utils/formatQueryString.ts b/test/utils/formatQueryString.ts index 3174c8b..2d0541f 100644 --- a/test/utils/formatQueryString.ts +++ b/test/utils/formatQueryString.ts @@ -123,4 +123,14 @@ describe('Format filter string', () => { }) expect(res).to.equal('eq(price.gt,100:price.lt,200)') }) + + it('should handle is_null with a single field', () => { + const res = formatFilterString('is_null', 'name') + expect(res).to.equal('is_null(name)') + }) + + it('should handle is_null with an array of fields', () => { + const res = formatFilterString('is_null', ['name', 'description']) + expect(res).to.equal('is_null(name):is_null(description)') + }) })