1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Move all samples to the root dir

Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
Anca Iordache 2020-03-16 17:23:59 +01:00
parent 0c6fcde001
commit f1e4cca535
262 changed files with 0 additions and 0 deletions

32
react-express-mysql/backend/test/sample.js vendored Executable file
View file

@ -0,0 +1,32 @@
const app = require('../index');
const chai = require('chai');
const chaiHttp = require('chai-http');
chai.use(chaiHttp);
chai.should();
describe('API /healthz', () => {
it('it should return 200', (done) => {
chai.request(app)
.get('/healthz')
.end((err, res) => {
res.should.have.status(200);
done();
});
});
});
describe('API /', () => {
it('it should return Welcome message', (done) => {
chai.request(app)
.get('/')
.end((err, res) => {
res.should.have.status(200);
res.should.to.be.html;
res.text.should.be.equal("Hello Docker World\n");
done();
});
});
});