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
2019-03-07 14:41:27 +01:00

15 lines
310 B
TypeScript

import request from "supertest";
import server from "../src";
import {} from "jasmine";
afterAll((done) => {
server.close(done);
});
describe("POST /api/v1/urlcheck", () => {
it('responds with json', function(done) {
request(server)
.post('/api/v1/urlcheck')
.expect(200, done);
});
});