address asset upload warning

This commit is contained in:
softprops 2021-07-30 18:46:30 -04:00
parent ca4bc532b6
commit 4ea9fd8322
3 changed files with 7 additions and 7 deletions

View file

@ -15,11 +15,11 @@ describe("github", () => {
describe("asset", () => {
it("derives asset info from a path", async () => {
const { name, mime, size, file } = asset("tests/data/foo/bar.txt");
const { name, mime, size, data } = asset("tests/data/foo/bar.txt");
assert.equal(name, "bar.txt");
assert.equal(mime, "text/plain");
assert.equal(size, 10);
assert.equal(file.toString(), "release me");
assert.equal(data.toString(), "release me");
});
});
});