From af628d77ae9893727c3fd08af870686f06d19e0b Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 26 May 2021 11:31:42 +0530 Subject: [PATCH] test: cli allowed hosts --- test/cli/cli.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/cli/cli.test.js b/test/cli/cli.test.js index bc25838300..5c6a268107 100644 --- a/test/cli/cli.test.js +++ b/test/cli/cli.test.js @@ -654,6 +654,15 @@ describe('CLI', () => { .catch(done); }); + it('--allowed-hosts', (done) => { + testBin('--allowed-hosts') + .then((output) => { + expect(output.exitCode).toEqual(0); + done(); + }) + .catch(done); + }); + it('--no-static-serve-index', (done) => { testBin('--no-static-serve-index') .then((output) => {