| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | import app from '../examples/express/app'; |
| 2 | import request from 'supertest'; | ||||
| 3 | |||||
| 4 | describe('mocha spec examples', () => { | ||||
| 5 | describe('tinylr', () => { | ||||
| 6 | it('GET /', done => { | ||||
| 7 | request(app) | ||||
| 8 | .get('/') | ||||
| 9 | .expect('Content-Type', /text\/html/) | ||||
| 10 | .expect(/Testing/) | ||||
| 11 | .expect(200, done); | ||||
| 12 | }); | ||||
| 13 | }); | ||||
| 14 | }); | ||||