Skip to content

Commit

Permalink
chore(expect): add equality test case for URL with query parameters
Browse files Browse the repository at this point in the history
Co-authored-by: Ari Perkkiö <[email protected]>
  • Loading branch information
kleinfreund and AriPerkkio committed Nov 29, 2023
1 parent 22fab12 commit 9de94c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/core/test/jest-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ describe('jest-expect', () => {

expect(new URL('https://example.org')).toEqual(new URL('https://example.org'))
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(BigInt(1)).toBeGreaterThan(BigInt(0))
expect(1).toBeGreaterThan(BigInt(0))
Expand Down

0 comments on commit 9de94c5

Please sign in to comment.