feat: 기능 추가 과정중
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
MemoryOfflineRepository,
|
||||
RecordingAnalyticsAdapter,
|
||||
createUnavailableAdapters,
|
||||
} from "../../recipes/frontend-capabilities/index.js";
|
||||
} from "../../recipes/frontend-capabilities/index.ts";
|
||||
|
||||
describe("optional capability recipes", () => {
|
||||
it("requires realtime cleanup and rejects duplicate or out-of-order events", async () => {
|
||||
@@ -76,7 +76,17 @@ describe("optional capability recipes", () => {
|
||||
const progress: number[] = [];
|
||||
const controller = new AbortController();
|
||||
const uploaded = await adapter.upload({
|
||||
file: { name: "safe.txt", size: 4, type: "text/plain" },
|
||||
file: {
|
||||
name: "safe.txt",
|
||||
size: 4,
|
||||
type: "text/plain",
|
||||
content: {
|
||||
byteLength: 4,
|
||||
chunks: (async function* () {
|
||||
yield new TextEncoder().encode("safe");
|
||||
})(),
|
||||
},
|
||||
},
|
||||
signal: controller.signal,
|
||||
onProgress(value) {
|
||||
progress.push(value.transferredBytes);
|
||||
|
||||
Reference in New Issue
Block a user