Skip to content

Commit

Permalink
fix: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
bxb100 committed Jun 22, 2024
1 parent ed00451 commit c7e2eed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bindings/nodejs/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ generated.js
generated.d.ts
.yarn
pnpm-lock.yaml
.devbox
devbox.json
devbox.lock
6 changes: 3 additions & 3 deletions bindings/nodejs/tests/suites/async.suite.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ export function run(op) {
})

test.runIf(op.capability().read && op.capability().write)('write with', async () => {
let c = generateFixedBytes(3 * 1024 * 1024)
let c = generateBytes()
const filename = `random_file_${randomUUID()}`

let builder = op.writeWith(filename, c)
if (op.capability().writeCanAppend) {
builder = builder.append(true)
}
if (op.capability().writeWithContentType) {
builder = builder.contentType("text/plain")
builder = builder.contentType('text/plain')
}
if (op.capability().writeWithContentDisposition) {
builder = builder.contentDisposition(`attachment;filename=${filename}.txt`)
}
if (op.capability().writeWithCacheControl) {
builder = builder.cacheControl("public, max-age=31536000, immutable")
builder = builder.cacheControl('public, max-age=31536000, immutable')
}
await builder.apply()

Expand Down

0 comments on commit c7e2eed

Please sign in to comment.