Skip to content

Fixed Issue #193 #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions codegens/csharp-restsharp/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -56,4 +55,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/csharp-restsharp/npm/test-newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all newman tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running newman tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/csharp-restsharp/npm/test-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all unit tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
7 changes: 3 additions & 4 deletions codegens/curl/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -56,4 +55,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/curl/npm/test-newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all newman tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running newman tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/curl/npm/test-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all unit tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
7 changes: 3 additions & 4 deletions codegens/golang/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -56,4 +55,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/golang/npm/test-newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all newman tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running newman tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/golang/npm/test-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all unit tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
7 changes: 3 additions & 4 deletions codegens/http/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -52,4 +51,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/http/npm/test-unit.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -16,8 +16,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -52,4 +52,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
7 changes: 3 additions & 4 deletions codegens/java-okhttp/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -56,4 +55,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/java-okhttp/npm/test-newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all newman tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running newman tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
12 changes: 6 additions & 6 deletions codegens/java-okhttp/npm/test-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// This script is intended to execute all unit tests.
// ---------------------------------------------------------------------------------------------------------------------

require('shelljs/global');
var shell = require('shelljs'),

// set directories and files for test and coverage report
var path = require('path'),
// set directories and files for test and coverage report
path = require('path'),

NYC = require('nyc'),
chalk = require('chalk'),
Expand All @@ -20,8 +20,8 @@ module.exports = function (exit) {
// banner line
console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));

test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
mkdir('-p', COV_REPORT_PATH);
shell.test('-d', COV_REPORT_PATH) && shell.rm('-rf', COV_REPORT_PATH);
shell.mkdir('-p', COV_REPORT_PATH);

var Mocha = require('mocha'),
nyc = new NYC({
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
7 changes: 3 additions & 4 deletions codegens/java-unirest/npm/test-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
require('shelljs/global');

var chalk = require('chalk'),
var shell = require('shelljs'),
chalk = require('chalk'),
async = require('async'),
ESLintCLIEngine = require('eslint').CLIEngine,

Expand Down Expand Up @@ -56,4 +55,4 @@ module.exports = function (exit) {
};

// ensure we run this script exports if this is a direct stdin.tty run
!module.parent && module.exports(exit);
!module.parent && module.exports(shell.exit);
Loading