Files
moon-gaming/roberts games/clash-royale-api-master/robertw games/tests/main.spec.js
T
2023-12-15 22:33:01 +00:00

22 lines
466 B
JavaScript

require('should');
const request = require('supertest');
const app = require('./helpers/mock.app');
describe('Server API', function () {
this.timeout(5000);
describe('GET /', () => {
it('should get main page', done => {
request(app)
.get('/')
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.end((err, res) => {
res.status.should.eql(200);
done();
});
});
});
});