diff --git a/packages/core-api/src/apis/system/ApiProvider.test.tsx b/packages/core-api/src/apis/system/ApiProvider.test.tsx index 4c0b3f5683..e95842aebc 100644 --- a/packages/core-api/src/apis/system/ApiProvider.test.tsx +++ b/packages/core-api/src/apis/system/ApiProvider.test.tsx @@ -194,7 +194,7 @@ describe('v1 consumer', () => { type Api = () => string; const apiRef = createApiRef({ id: 'x', description: '' }); - const registry = ApiRegistry.from([[apiRef, () => 'hello']]); + const registry = ApiRegistry.with(apiRef, () => 'hello'); const MyHookConsumerV1 = () => { const api = useMockApiV1(apiRef);