Skip to content

Commit

Permalink
chore: remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu2001 committed Jul 12, 2024
1 parent 00d8ff2 commit d86c2e8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/validators/src/__tests__/url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ describe('UrlValidator with default options', () => {
expect(() => validator.parse('https://open.gov.sg')).not.toThrow()
})

it('should parse a valid URL', () => {
const url = validator.parse('https://example.com')
expect(url).toBeInstanceOf(URL)
})

// https://url.spec.whatwg.org/#missing-scheme-non-relative-url
it('should throw an error when missing a scheme and no base URL or base URL', () => {
expect(() => validator.parse('example.com')).toThrow(UrlValidationError)
Expand Down

0 comments on commit d86c2e8

Please sign in to comment.