Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/loader/container-loader/src/test/failProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const failSometimeProxy = <T extends object>(handler: Partial<T>): T => {
if (p in handler) {
return Reflect.get(t, p, r);
}
return failProxy();
throw new Error(`${p.toString()} not implemented`);
},
});
return proxy;
Expand Down
2 changes: 2 additions & 0 deletions packages/loader/container-loader/src/test/loader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const createCodeLoader = (props?: { createDetachedBlob?: boolean }): ICodeDetail
pending: [],
}),
ILayerCompatDetails: undefined,
disposed: false,
setConnectionState: () => {},
});
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ describe("Runtime Layer compatibility", () => {
pending: [],
}),
ILayerCompatDetails: compatibilityDetails,
disposed: false,
setConnectionState: () => {},
});
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export const failProxy = <T extends object>(handler: Partial<T> = {}): T => {
if (handler !== undefined && p in handler) {
return Reflect.get(t, p, r);
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return failProxy();
throw new Error(`${p.toString()} not implemented`);
},
});
return proxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export const failProxy = <T extends object>(handler: Partial<T> = {}): T => {
if (handler !== undefined && p in handler) {
return Reflect.get(t, p, r);
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return failProxy();
throw new Error(`${p.toString()} not implemented`);
},
});
return proxy;
Expand All @@ -52,6 +51,10 @@ function createBlobManager(overrides?: Partial<ConstructorParameters<typeof Blob
blobManagerLoadInfo: {},
stashedBlobs: undefined,
localBlobIdGenerator: undefined,
storage: failProxy<IDocumentStorageService>(),
sendBlobAttachOp: () => {},
blobRequested: () => {},
isBlobDeleted: () => false,
createBlobPlaceholders: false,

// overrides
Expand Down
Loading