Skip to content

Commit 0c4d9fd

Browse files
committedDec 10, 2024
test: enable cloudflare-r2-binding tests
1 parent fb8e00e commit 0c4d9fd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎test/drivers/cloudflare-r2-binding.test.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import CloudflareR2Binding from "../../src/drivers/cloudflare-r2-binding";
55
import { testDriver } from "./utils";
66
import { getPlatformProxy } from "wrangler";
77

8-
describe.skip("drivers: cloudflare-r2-binding", async () => {
8+
describe("drivers: cloudflare-r2-binding", async () => {
99
const cfProxy = await getPlatformProxy();
1010
globalThis.__env__ = cfProxy.env;
1111
afterAll(async () => {
@@ -20,9 +20,16 @@ describe.skip("drivers: cloudflare-r2-binding", async () => {
2020
const storage = createStorage({
2121
driver: CloudflareR2Binding({}),
2222
});
23-
expect(await snapshot(storage, "")).toMatchInlineSnapshot(`
23+
24+
const storageSnapshot = await snapshot(storage, "");
25+
26+
storageSnapshot["base:data:raw.bin"] = (await storage.getItemRaw(
27+
"base:data:raw.bin"
28+
)) as any;
29+
30+
expect(storageSnapshot).toMatchInlineSnapshot(`
2431
{
25-
"base:data:raw.bin": Uint8Array [
32+
"base:data:raw.bin": ArrayBuffer [
2633
1,
2734
2,
2835
3,

0 commit comments

Comments
 (0)