From 7823d60ea1b6e053c9b91dc47526aed2087571ac Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Tue, 8 Aug 2023 19:39:09 +0200 Subject: [PATCH] feat: add missing stubs to uiRecordApi (#332) --- src/lightning-stubs/uiRecordApi/uiRecordApi.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lightning-stubs/uiRecordApi/uiRecordApi.js b/src/lightning-stubs/uiRecordApi/uiRecordApi.js index e017e2d5..0e443466 100644 --- a/src/lightning-stubs/uiRecordApi/uiRecordApi.js +++ b/src/lightning-stubs/uiRecordApi/uiRecordApi.js @@ -7,6 +7,7 @@ import { createLdsTestWireAdapter } from '@salesforce/wire-service-jest-util'; export const getRecord = createLdsTestWireAdapter(jest.fn()); +export const getRecords = createLdsTestWireAdapter(jest.fn()); export const getRecordCreateDefaults = createLdsTestWireAdapter(jest.fn()); export const updateRecord = jest.fn().mockResolvedValue({}); export const createRecord = jest.fn().mockResolvedValue({}); @@ -18,6 +19,7 @@ export const getRecordInput = jest.fn(); export const getRecordNotifyChange = createLdsTestWireAdapter(jest.fn()); export const refresh = jest.fn().mockResolvedValue(); export const getRecordUi = createLdsTestWireAdapter(jest.fn()); +export const notifyRecordUpdateAvailable = jest.fn().mockResolvedValue(); /** * Gets a field's value from a record.