Skip to content

Commit a38199b

Browse files
Fix tests
Courtesy of @Inbestigator's suggestion in #11
1 parent 949b1b8 commit a38199b

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ It only has a _single method_: `parse(url: string)` which returns the same strin
2323
### Deno
2424

2525
```ts
26-
import shurley from 'jsr:@brn/[email protected].8'; // or import shurley from 'https://deno.land/x/[email protected].8/mod.ts';
26+
import shurley from 'jsr:@brn/[email protected].9'; // or import shurley from 'https://deno.land/x/[email protected].9/mod.ts';
2727

2828
const parsedUrl = shurley.parse('example.com');
2929

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@brn/shurley",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"exports": "./mod.ts",
55
"fmt": {
66
"useTabs": false,

mod.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* parse("https://example.com") // "https://example.com"
88
* parse("ftp://example.com") // "https://example.com"
99
* parse("example.com/path") // "https://example.com/path"
10-
* parse("example.com/path/to/resource") // "https://example.com/path/to/resource"
11-
* parse("example.com/path/to/resource?query=string") // "https://example.com/path/to/resource?query=string"
1210
* parse("example.com/path/to/resource?query=string#fragment") // "https://example.com/path/to/resource?query=string#fragment"
1311
* ```
1412
*
@@ -42,7 +40,7 @@ export const parse = (url: string): string => {
4240
* This simply exports the `parse` function as the default export.
4341
*
4442
* ```ts
45-
* import shurley from 'jsr:@brn/[email protected].8'; // or import shurley from 'https://deno.land/x/[email protected].8/mod.ts';
43+
* import shurley from 'jsr:@brn/[email protected].9'; // or import shurley from 'https://deno.land/x/[email protected].9/mod.ts';
4644
*
4745
* const parsedUrl = shurley.parse('example.com'); // "https://example.com"
4846
* ```

mod_test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { equal } from 'jsr:@std/[email protected]';
1+
import { assertEquals } from 'jsr:@std/[email protected]';
22

33
import shurley from './mod.ts';
44

@@ -34,6 +34,6 @@ Deno.test('that .parse() works', () => {
3434

3535
for (const test of tests) {
3636
const parsedUrl = shurley.parse(test.url);
37-
equal(parsedUrl, test.expected);
37+
assertEquals(parsedUrl, test.expected);
3838
}
3939
});

0 commit comments

Comments
 (0)