mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
more ocean mocking
This commit is contained in:
parent
a5489a2e6c
commit
a1eb68b45a
@ -12,10 +12,23 @@ const oceanMock = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
assets: {
|
||||||
|
resolve: jest.fn(),
|
||||||
|
order: () => {
|
||||||
|
return {
|
||||||
|
next: jest.fn()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
consume: jest.fn()
|
||||||
|
},
|
||||||
keeper: {
|
keeper: {
|
||||||
conditions: {
|
conditions: {
|
||||||
accessSecretStoreCondition: {
|
accessSecretStoreCondition: {
|
||||||
getGrantedDidByConsumer: jest.fn()
|
getGrantedDidByConsumer: () => {
|
||||||
|
return {
|
||||||
|
find: jest.fn()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,12 @@ const file = {
|
|||||||
contentLength: 100
|
contentLength: 100
|
||||||
}
|
}
|
||||||
|
|
||||||
const ddo = ({ id: 'xxx', findServiceByType: jest.fn() } as any) as DDO
|
const ddo = ({
|
||||||
|
id: 'xxx',
|
||||||
|
findServiceByType: () => {
|
||||||
|
return { serviceDefinitionId: 'xxx' }
|
||||||
|
}
|
||||||
|
} as any) as DDO
|
||||||
|
|
||||||
ReactGA.initialize('foo', { testMode: true })
|
ReactGA.initialize('foo', { testMode: true })
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user