1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/server/test/api.test.ts

16 lines
330 B
TypeScript
Raw Normal View History

2019-03-24 02:10:00 +01:00
import request from 'supertest'
2019-04-12 16:26:13 +02:00
import server from '../src/server'
2019-03-24 02:10:00 +01:00
import {} from 'jasmine'
2019-03-24 02:10:00 +01:00
afterAll(done => {
server.close(done)
})
2019-03-24 02:10:00 +01:00
describe('POST /api/v1/urlcheck', () => {
it('responds with json', function(done) {
request(server)
.post('/api/v1/urlcheck')
.expect(200, done)
})
})