From 2cbc58f7e1e18f153987f7e4feee0df1ce76a7a2 Mon Sep 17 00:00:00 2001 From: Fredrik Forsmo Date: Tue, 1 Feb 2022 21:58:34 +0100 Subject: [PATCH] Fix failing personnummer test --- test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.ts b/test.ts index aa3ad16..86f56ab 100644 --- a/test.ts +++ b/test.ts @@ -66,6 +66,6 @@ it('should work with personnummer', () => { expect(org.format(true)).toBe(output); expect(org.type()).toBe(type); expect(org.isPersonnummer()).toBeTruthy(); - expect(org.personnummer()).toBeInstanceOf(Personnummer); + expect(org.personnummer().constructor.name).toBe('Personnummer'); }); });