diff options
| author | Jordan Oroshiba <[email protected]> | 2018-06-29 15:57:16 -0500 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2018-06-29 13:57:16 -0700 |
| commit | 231f12f88120dc868b7bcbfcbd27f74d00f8ffaa (patch) | |
| tree | e7b80791f1a4bc1e7cb860a3699ab026cbb80d71 /test/getOptions.js | |
| parent | a96ab2674f4ea53978f45e432d9c691a57673934 (diff) | |
| download | node-coveralls-231f12f88120dc868b7bcbfcbd27f74d00f8ffaa.tar.xz node-coveralls-231f12f88120dc868b7bcbfcbd27f74d00f8ffaa.zip | |
Adds support for named job flags (#196)
* Adds support for named job flags
* Add actual test function
Diffstat (limited to 'test/getOptions.js')
| -rw-r--r-- | test/getOptions.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/getOptions.js b/test/getOptions.js index dd70a9b..d73b79c 100644 --- a/test/getOptions.js +++ b/test/getOptions.js @@ -116,6 +116,9 @@ describe("getOptions", function(){ it ("should set paralell if env var set", function(done){ testParallel(getOptions, done); }); + it ("should set flag_name if it exists", function(done) { + testFlagName(getOptions, done); + }); it ("should set service_name if it exists", function(done){ testServiceName(getOptions, done); }); @@ -242,6 +245,15 @@ var testParallel = function(sut, done){ }); }; +var testFlagName = function(sut, done){ + process.env.COVERALLS_FLAG_NAME = 'test flag'; + + sut(function(err, options){ + options.flag_name.should.equal('test flag'); + done(); + }); +}; + var testRepoTokenDetection = function(sut, done) { var fs = require('fs'); var path = require('path'); |
