From 553fbb147458d876e49ff79cd9e70396b3d7ab5c Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 6 Mar 2024 05:11:14 -0800 Subject: [PATCH] prettier --- test/client/stdlib/fileAttachment-test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/client/stdlib/fileAttachment-test.ts b/test/client/stdlib/fileAttachment-test.ts index 793df7432..2f1caaafe 100644 --- a/test/client/stdlib/fileAttachment-test.ts +++ b/test/client/stdlib/fileAttachment-test.ts @@ -13,31 +13,31 @@ describe("FileAttachment(name)", () => { const f = FileAttachment("./test.csv"); assert.strictEqual(f.name, "test.csv"); assert.strictEqual(f.mimeType, "text/csv"); - assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); + assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); // prettier-ignore }); it("normalizes the specified file path", async () => { const f = FileAttachment("test.csv"); assert.strictEqual(f.name, "test.csv"); assert.strictEqual(f.mimeType, "text/csv"); - assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); + assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); // prettier-ignore }); it("resolves the specified path relative to the current location", async () => { const f = FileAttachment("/test.csv"); assert.strictEqual(f.name, "test.csv"); assert.strictEqual(f.mimeType, "text/csv"); - assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); + assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); // prettier-ignore }); it("resolves the specified path relative to the specified location (1)", async () => { const f = FileAttachment("/test.csv", "http://localhost:3000/sub/path"); assert.strictEqual(f.name, "test.csv"); assert.strictEqual(f.mimeType, "text/csv"); - assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); + assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); // prettier-ignore }); it("resolves the specified path relative to the specified location (2)", async () => { const f = FileAttachment("../test.csv", "http://localhost:3000/sub/path"); assert.strictEqual(f.name, "test.csv"); assert.strictEqual(f.mimeType, "text/csv"); - assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); + assert.strictEqual(await f.url(), "http://localhost:3000/_file/test.csv?sha=edd06c0d902e9ce083a9a5d8d0e655732c72e8129d3c60bfe69d228265e892d6"); // prettier-ignore }); it("throws an error if the file does not exist", async () => { assert.throws(() => FileAttachment("does-not-exist.csv"), /file not found/i);