From 6c6b5492466c2cdc832de706bb7f7552c9c2527e Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 15 Mar 2021 14:50:02 +0100 Subject: [PATCH] core-api: use ApiRegistry.with Signed-off-by: Patrik Oldsberg --- packages/core-api/src/apis/system/ApiProvider.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);