From fd7a2d56bfaf968ff72ab7def109f23f246e6bd6 Mon Sep 17 00:00:00 2001 From: Philipp Rudloff Date: Wed, 29 Nov 2023 13:15:03 +0100 Subject: [PATCH] chore(expect): expand URL equality test cases --- test/core/test/jest-expect.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/core/test/jest-expect.test.ts b/test/core/test/jest-expect.test.ts index 73489d857d6a..4f78f9b8e1cd 100644 --- a/test/core/test/jest-expect.test.ts +++ b/test/core/test/jest-expect.test.ts @@ -58,6 +58,10 @@ describe('jest-expect', () => { expect(new URL('https://example.org')).not.toEqual(new URL('https://different-example.org')) expect(new URL('https://example.org?query=value')).toEqual(new URL('https://example.org?query=value')) expect(new URL('https://example.org?query=one')).not.toEqual(new URL('https://example.org?query=two')) + expect(new URL('https://subdomain.example.org/path?query=value#fragment-identifier')).toEqual(new URL('https://subdomain.example.org/path?query=value#fragment-identifier')) + expect(new URL('https://subdomain.example.org/path?query=value#fragment-identifier')).not.toEqual(new URL('https://subdomain.example.org/path?query=value#different-fragment-identifier')) + expect(new URL('https://example.org/path')).toEqual(new URL('/path', 'https://example.org')) + expect(new URL('https://example.org/path')).not.toEqual(new URL('/path', 'https://example.com')) expect(BigInt(1)).toBeGreaterThan(BigInt(0)) expect(1).toBeGreaterThan(BigInt(0))