From ad47b7438e35cddadbd83703cbe1da93a2f95bc9 Mon Sep 17 00:00:00 2001 From: Justin Silver Date: Fri, 27 Jan 2017 11:47:22 -0800 Subject: [PATCH] Update options tests and README --- README.md | 2 ++ test/options_test.js | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 1ba3f14..b4313d0 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ Oh, do you want some specific stuff? Checkout the available o --port, --p change port --host, --h change the host name --secure, --s use https/wss +--cors, --c respond to requests with CORS headers --quiet, --q no logging whatsoever --noBrowser, --nb won't open the browser automagically --only, --o will only watch for changes in the given path/glob/regex/array @@ -116,6 +117,7 @@ new Server({quiet: true}).start(); --port is 1307 --host is 127.0.0.1 --secure is false +--cors is false --quiet is false --only is ".", which means it'll watch everything --ignore is ^(.git|node_modules|bower_components|jspm_packages|test|typings|coverage|unit_coverage) diff --git a/test/options_test.js b/test/options_test.js index d7baa75..85f659b 100644 --- a/test/options_test.js +++ b/test/options_test.js @@ -10,6 +10,7 @@ describe('options', () => { expect(options.pathIndex).to.equal(''); expect(options.noBrowser).to.be.false; expect(options.secure).to.be.false; + expect(options.cors).to.be.false; expect(options.static).to.deep.equal([]); expect(options.quiet).to.be.false; expect(options.proxy).to.be.false;