Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 26, 2021
1 parent c2ebba2 commit 638b3bc
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions test/server/host-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,37 +78,6 @@ describe('host option', () => {
afterAll(testServer.close);
});

describe('is null', () => {
beforeAll((done) => {
server = testServer.start(
config,
{
static: {
directory: staticDirectory,
watch: false,
},
host: null,
port,
},
done
);
req = request(server.app);
});

it('server address', () => {
const address = server.server.address();

expect(address.address).toBe('::');
expect(address.port).toBe(port);
});

it('Request to index', (done) => {
req.get('/').expect(200, done);
});

afterAll(testServer.close);
});

describe('is 127.0.0.1 (IPv4)', () => {
beforeAll((done) => {
server = testServer.start(
Expand Down

0 comments on commit 638b3bc

Please sign in to comment.