mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
add tests
This commit is contained in:
parent
960e90f9ec
commit
cdc5dc8bc6
18
test/integration/Provider.test.ts
Normal file
18
test/integration/Provider.test.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import config from './config'
|
||||
import { assert } from 'console'
|
||||
|
||||
describe('Provider tests', () => {
|
||||
let ocean
|
||||
it('Initialize Ocean', async () => {
|
||||
ocean = await Ocean.getInstance(config)
|
||||
})
|
||||
it('Alice tests invalid provider', async () => {
|
||||
const valid = ocean.provider.isValidProvider('http://example.net')
|
||||
assert(valid === false)
|
||||
})
|
||||
it('Alice tests valid provider', async () => {
|
||||
const valid = ocean.provider.isValidProvider('http://127.0.0.1:8030')
|
||||
assert(valid === true)
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user