Skip to content

Commit

Permalink
chore(expect): expand URL equality test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Rudloff committed Nov 29, 2023
1 parent 9de94c5 commit fd7a2d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/core/test/jest-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fd7a2d5

Please sign in to comment.