diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-13 02:00:08 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-14 06:54:33 +0800 |
commit | b08374f0ba2d1c163f1c8d75a06f642101e1e15d (patch) | |
tree | a09e61a6131cc0dbd35fc963f09b1a774ca61959 /packages/sra-report/src/index.ts | |
parent | df9e7385ad86a16db195fa75db18dd6ee21eedf1 (diff) | |
download | dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.gz dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.bz2 dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.lz dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.xz dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.zst dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.zip |
Add scaffolding for sra-report collection unit tests
Diffstat (limited to 'packages/sra-report/src/index.ts')
-rw-r--r-- | packages/sra-report/src/index.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts index d23549916..022464d28 100644 --- a/packages/sra-report/src/index.ts +++ b/packages/sra-report/src/index.ts @@ -7,12 +7,11 @@ import * as _ from 'lodash'; import * as newman from 'newman'; import * as yargs from 'yargs'; -import * as sraReportCollectionJSON from '../postman_configs/collections/sra_report.postman_collection.json'; +import * as sraReportCollectionJSON from '../../postman_collections/sra_report.postman_collection.json'; import { postmanEnvironmentFactory } from './postman_environment_factory'; import { utils } from './utils'; -const newmanRunAsync = promisify<void>(newman.run); const DEFAULT_NETWORK_ID = 1; const SUPPORTED_NETWORK_IDS = [1, 3, 4, 42]; @@ -97,6 +96,6 @@ const mainAsync = async () => { exportEnvironment: args.exportEnvironment, ...newmanReporterOptions, }; - await newmanRunAsync(newmanRunOptions); + await utils.newmanRunAsync(newmanRunOptions); }; mainAsync().catch(utils.log); |