-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(carv2): add fixtures and test expectations from go-car
- Loading branch information
Showing
22 changed files
with
4,377 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules/ | |
coverage/ | ||
build/ | ||
dist/ | ||
types/ | ||
types/ | ||
examples/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
test/fixtures/ | ||
test/fixtures.js | ||
test/fixtures-expectations.js | ||
esm/browser-test/fixtures.js | ||
esm/node-test/fixtures.js | ||
cjs/browser-test/fixtures.js | ||
cjs/node-test/fixtures.js | ||
test/fixtures-expectations.js | ||
esm/browser-test/fixtures-expectations.js | ||
esm/node-test/fixtures-expectations.js | ||
cjs/browser-test/fixtures-expectations.js | ||
cjs/node-test/fixtures-expectations.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
import { readdir, readFile, writeFile } from 'fs/promises' | ||
import { dirname, join } from 'path' | ||
|
||
async function main () { | ||
const thisdir = dirname(new URL(import.meta.url).pathname) | ||
const outfile = join(thisdir, 'fixtures.js') | ||
const fixturesdir = join(thisdir, 'fixtures') | ||
const files = await readdir(fixturesdir) | ||
let content = '/** @type {Record<string, string>} */\nexport const data = {\n' | ||
for (const f of files) { | ||
content += ` '${f}': '` | ||
content += (await readFile(join(fixturesdir, f))).toString('base64') | ||
content += '\',\n' | ||
} | ||
content += ' _: \'\'\n}\n' | ||
await writeFile(join(outfile), content, 'utf8') | ||
} | ||
|
||
main().catch((err) => { | ||
console.error(err) | ||
process.exit(1) | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�eroots�gversio |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�gversion* |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters