diff --git a/test/unit/docsify.test.js b/test/unit/docsify.test.js index 5f38cab..8f095c8 100644 --- a/test/unit/docsify.test.js +++ b/test/unit/docsify.test.js @@ -7,7 +7,8 @@ const handler = require('serve-handler'); const { expect } = require('chai'); const { initJSDOM } = require('../_helper'); -const docsifySite = 'http://127.0.0.1:3000'; +const port = 9753; +const docsifySite = 'http://127.0.0.1:' + port; const markup = /* html */ ` @@ -30,7 +31,7 @@ describe('Docsify public API', () => { return handler(request, response); }); - await new Promise(r => server.listen(3000, r)); + await new Promise(r => server.listen(port, r)); }); after(async () => {