Skip to content

Commit

Permalink
Remove undici
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Jan 29, 2025
1 parent 487caeb commit 43be903
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"typescript": "^5.7.3",
"undici": "^7.3.0",
"vitest": "^3.0.4"
},
"keywords": [
Expand Down
5 changes: 2 additions & 3 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, it, expect } from 'vitest';
import { request } from 'undici';
import { diffInYears } from './utils';

type TestList = {
Expand Down Expand Up @@ -35,10 +34,10 @@ const testList = (file = 'list'): Promise<TestList> => {
});
}

const res = request(
const res = fetch(
`https://raw.githubusercontent.com/personnummer/meta/master/testdata/${file}.json`,
{},
).then((p) => p.body.json());
).then((p) => p.json());

_testList[file] = res;

Expand Down

0 comments on commit 43be903

Please sign in to comment.