aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report/src/index.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-06 08:13:47 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-06 08:13:47 +0800
commit38a4ccd9f24cd1cd583c17ebc200238e1770e5f8 (patch)
treed0647ebcb590cf8ec6eb73583d505d5623faa006 /packages/sra-report/src/index.ts
parentcf342dd00eaae8667984e77eb565040c132f160a (diff)
downloaddexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar.gz
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar.bz2
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar.lz
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar.xz
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.tar.zst
dexon-sol-tools-38a4ccd9f24cd1cd583c17ebc200238e1770e5f8.zip
Change all globals in environment variables
Diffstat (limited to 'packages/sra-report/src/index.ts')
-rw-r--r--packages/sra-report/src/index.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts
index c74b5cb40..4e93708ee 100644
--- a/packages/sra-report/src/index.ts
+++ b/packages/sra-report/src/index.ts
@@ -60,11 +60,6 @@ const mainAsync = async () => {
if (_.isUndefined(firstOrder)) {
throw new Error('Could not get any orders from /orders endpoint');
}
- const newmanEnvironmentOptions = {
- collection: sraReportCollectionJSON,
- globals: postmanEnvironmentFactory.createGlobalEnvironment(args.endpointUrl, firstOrder),
- environment: postmanEnvironmentFactory.createNetworkEnvironment(args.networkId),
- };
const newmanReporterOptions = !_.isUndefined(args.output)
? {
reporters: 'json',
@@ -78,7 +73,8 @@ const mainAsync = async () => {
reporters: 'cli',
};
const newmanRunOptions = {
- ...newmanEnvironmentOptions,
+ collection: sraReportCollectionJSON,
+ environment: postmanEnvironmentFactory.createPostmanEnvironment(args.endpointUrl, args.networkId, firstOrder),
...newmanReporterOptions,
};
await newmanRunAsync(newmanRunOptions);