A version of the DataSourceClient that you can use for any automated tests of your data connector.
Modify the gotUpdate
field to change the behaviour of the update method.
Extends
Constructors
new MockDataSourceClient()
new MockDataSourceClient(): MockDataSourceClient
Returns
Overrides
Properties
gotMetadata()
gotMetadata: (keys, prefixes) => MetadataRecord[];
Assign this to your mocked update function
Parameters
Parameter | Type |
---|---|
keys | string [] |
prefixes | string [] |
Returns
gotUpdate()
gotUpdate: (request) => void;
Assign this to your mocked update function
Parameters
Parameter | Type |
---|---|
request | DataSourceRequest |
Returns
void
patchedMetadata()
patchedMetadata: (patches) => MetadataPatchResponse;
Assign this to your mocked update function
Parameters
Parameter | Type |
---|---|
patches | MetadataPatch [] |