core-plugin-api: fix useTranslationRef test

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-12 17:58:34 +02:00
parent 5a1c6a35f5
commit 8a5b04308b
@@ -51,7 +51,7 @@ describe('useTranslationRef', () => {
};
(useApi as jest.Mock).mockReturnValue({
addResourcesByRef: jest.fn(),
addResource: jest.fn(),
});
(useTranslation as jest.Mock).mockReturnValue(i18nMock);