From 04e434682d9c58dcbaeda07232fd1e9c103d92d0 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Fri, 18 Apr 2025 01:18:49 +0700 Subject: test: use validator@13.15.0 with isULID, isISO31661Numeric, isISO15924 (#3482) --- test/modules/string.spec.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/modules/string.spec.ts') diff --git a/test/modules/string.spec.ts b/test/modules/string.spec.ts index 7b3be347..3dc8a255 100644 --- a/test/modules/string.spec.ts +++ b/test/modules/string.spec.ts @@ -1,3 +1,4 @@ +import isULID from 'validator/lib/isULID'; import { describe, expect, it } from 'vitest'; import { FakerError, faker } from '../../src'; import { seededTests } from '../support/seeded-runs'; @@ -774,6 +775,7 @@ describe('string', () => { const ulid = faker.string.ulid(); const regex = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/; expect(ulid).toMatch(regex); + expect(ulid).toSatisfy(isULID); }); }); -- cgit v1.2.3