(liveServer)
| 4 | process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; |
| 5 | |
| 6 | function tests(liveServer) { |
| 7 | it('should reply with a correct index file', function(done) { |
| 8 | request(liveServer) |
| 9 | .get('/index.html') |
| 10 | .expect('Content-Type', 'text/html; charset=UTF-8') |
| 11 | .expect(/Hello world/i) |
| 12 | .expect(200, done); |
| 13 | }); |
| 14 | it('should support head request', function(done) { |
| 15 | request(liveServer) |
| 16 | .head('/index.html') |
| 17 | .expect('Content-Type', 'text/html; charset=UTF-8') |
| 18 | .expect(200, done); |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | describe('https tests with external module', function() { |
| 23 | var opts = { |
no outgoing calls
no test coverage detected
searching dependent graphs…