Skip to content

Commit

Permalink
feat: add missing stubs to uiRecordApi (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Aug 8, 2023
1 parent 6e4190c commit 7823d60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lightning-stubs/uiRecordApi/uiRecordApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
Expand All @@ -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.
Expand Down

0 comments on commit 7823d60

Please sign in to comment.