MCPcopy Index your code
hub / github.com/tapio/live-server / tests

Function tests

test/https.js:6–20  ·  view source on GitHub ↗
(liveServer)

Source from the content-addressed store, hash-verified

4process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
5
6function 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
22describe('https tests with external module', function() {
23 var opts = {

Callers 1

https.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…