public.endpoint.test.js 339 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const request = require('supertest')
const express = require('express')

const app = express()
app.set('port', 9989)

describe('Test endpoint(s)', () => {
  it('should return a 200 status code', () => {
    request(app)
      .get('/contact')
      .expect(200)
      .end(function (err, res) {
        if (err) throw err
      })
  })
})