redux-data-service > MockAdapter
MockAdapter
- IAdapter<
any
>
● createItem: any
= stub().callsFake((item) => of$({
...item,
id: faker.random.number().toString(),
}))
Implementation of IAdapter.createItem
Defined in Adapters/MockAdapter.ts:7
● deleteItem: any
= stub().callsFake((id: string) => of$({
id,
dateDeleted: new Date().toISOString(),
}))
Implementation of IAdapter.deleteItem
Defined in Adapters/MockAdapter.ts:12
● fetchAll: any
= stub().callsFake(() => of$({ items: [] }))
Implementation of IAdapter.fetchAll
Defined in Adapters/MockAdapter.ts:17
● fetchItem: any
= stub().callsFake((id: string) => of$({ id }))
Implementation of IAdapter.fetchItem
Defined in Adapters/MockAdapter.ts:18
● patchItem: any
= stub().callsFake((id: string, item) => of$({ ...item, id }))
Implementation of IAdapter.patchItem
Defined in Adapters/MockAdapter.ts:19
● updateItem: any
= stub().callsFake((id: string, item) => of$({ ...item, id }))
Implementation of IAdapter.updateItem
Defined in Adapters/MockAdapter.ts:20