Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
Also reduce `@std/assert` version otherwise `@deno/dnt` fails.
  • Loading branch information
BrunoBernardino committed Feb 2, 2025
1 parent a4c7624 commit 88c7423
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { equal } from 'jsr:@std/[email protected].11';
import { equal } from 'jsr:@std/[email protected].8';

import shurley from './mod.ts';

Expand All @@ -25,6 +25,11 @@ Deno.test('that .parse() works', () => {
{ url: 'https://example.com/', expected: 'https://example.com/' },
{ url: 'https://example.com/something', expected: 'https://example.com/something' },
{ url: 'git:example.com', expected: 'https://git:example.com' },
{ url: 'https://example.com/?something=true', expected: 'https://example.com/?something=true' },
{
url: 'https://example.com/something?something=true#yeah',
expected: 'https://example.com/something?something=true#yeah',
},
];

for (const test of tests) {
Expand Down

0 comments on commit 88c7423

Please sign in to comment.