Skip to content

Commit

Permalink
Fixed lint errors 👕
Browse files Browse the repository at this point in the history
  • Loading branch information
kunagpal committed Aug 6, 2018
1 parent 9f79780 commit 3c133fe
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions test/unit/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('cli parser', function () {
});
});

describe('Run Command', function () {
describe('Run Command', function () {
// stub `newman.run`, directly return options passed to `newman.run` in newmanCLI.
before(function () {
sinon.stub(newman, 'run').callsFake((options) => {
Expand Down Expand Up @@ -139,27 +139,27 @@ describe('cli parser', function () {

it('should load all arguments (except reporters)', function (done) {
cli(('node newman.js run ' +
'myCollection.json ' +
'-e myEnv.json ' +
'-g myGlobals.json ' +
'-d path/to/csv.csv ' +
'--folder myFolder ' +
'--export-environment exported_env.json ' +
'--export-globals exported_glob.json ' +
'--postman-api-key POSTMAN_API_KEY ' +
'--reporter-cli-no-summary ' +
'--iteration-count 23 ' +
'--reporters json ' +
'--global-var foo=bar --global-var alpha==beta= ' +
'--color off ' +
'--delay-request 12000 ' +
'--timeout 10000 ' +
'--timeout-request 5000 ' +
'--timeout-script 5000 ' +
'--ignore-redirects ' +
'--bail ' +
'--suppress-exit-code ' +
'-k').split(' '), 'run', function (err, opts) {
'myCollection.json ' +
'-e myEnv.json ' +
'-g myGlobals.json ' +
'-d path/to/csv.csv ' +
'--folder myFolder ' +
'--export-environment exported_env.json ' +
'--export-globals exported_glob.json ' +
'--postman-api-key POSTMAN_API_KEY ' +
'--reporter-cli-no-summary ' +
'--iteration-count 23 ' +
'--reporters json ' +
'--global-var foo=bar --global-var alpha==beta= ' +
'--color off ' +
'--delay-request 12000 ' +
'--timeout 10000 ' +
'--timeout-request 5000 ' +
'--timeout-script 5000 ' +
'--ignore-redirects ' +
'--bail ' +
'--suppress-exit-code ' +
'-k').split(' '), 'run', function (err, opts) {
expect(err).to.be.null;

expect(opts).to.be.ok;
Expand Down Expand Up @@ -197,29 +197,29 @@ describe('cli parser', function () {

it('should load all arguments (including reporters)', function (done) {
cli(('node newman.js run ' +
'myCollection.json ' +
'-e myEnv.json ' +
'-g myGlobals.json ' +
'-d /path/to/csv.csv ' +
'--folder myFolder ' +
'--disable-unicode ' +
'--export-environment exported_env.json ' +
'--export-globals exported_glob.json ' +
'--reporter-cli-no-summary ' +
'--reporter-cli-no-success-assertions ' +
'--iteration-count 23 ' +
'--reporters json ' +
'--color on ' +
'--delay-request 12000 ' +
'--timeout 10000 ' +
'--timeout-request 5000 ' +
'--timeout-script 5000 ' +
'--ignore-redirects ' +
'-k ' +
'--bail folder,failure ' +
'--global-var foo=bar --global-var alpha==beta= ' +
'--reporter-json-output ./omg.txt ' +
'--reporter-use everything').split(' '), 'run', function (err, opts) {
'myCollection.json ' +
'-e myEnv.json ' +
'-g myGlobals.json ' +
'-d /path/to/csv.csv ' +
'--folder myFolder ' +
'--disable-unicode ' +
'--export-environment exported_env.json ' +
'--export-globals exported_glob.json ' +
'--reporter-cli-no-summary ' +
'--reporter-cli-no-success-assertions ' +
'--iteration-count 23 ' +
'--reporters json ' +
'--color on ' +
'--delay-request 12000 ' +
'--timeout 10000 ' +
'--timeout-request 5000 ' +
'--timeout-script 5000 ' +
'--ignore-redirects ' +
'-k ' +
'--bail folder,failure ' +
'--global-var foo=bar --global-var alpha==beta= ' +
'--reporter-json-output ./omg.txt ' +
'--reporter-use everything').split(' '), 'run', function (err, opts) {
expect(err).to.be.null;

expect(opts).to.be.ok;
Expand Down

0 comments on commit 3c133fe

Please sign in to comment.