Skip to content

Commit fcb1084

Browse files
jashkenasmbostock
andauthored
Update test/fileAttachments-test.js
Co-authored-by: Mike Bostock <[email protected]>
1 parent 3c2c5dd commit fcb1084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fileAttachments-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test("FileAttachment ensures that URLs are strings", async t => {
1818
});
1919

2020
test("FileAttachment works with Promises that resolve to URLs", async t => {
21-
const fileAttachments = FileAttachments((name) =>
22-
new Promise((resolve) => resolve(new URL(`https://example.com/${name}.js`)))
21+
const fileAttachments = FileAttachments(async (name) =>
22+
new URL(`https://example.com/${name}.js`)
2323
);
2424
const file = fileAttachments("otherfile");
2525
t.equal(file.constructor.name, "FileAttachment");

0 commit comments

Comments
 (0)