diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-14 16:36:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 16:36:13 +0800 |
commit | 58fa35641d3016ef106496c929e48febcf827dc6 (patch) | |
tree | 3f33c2faac3b55e52098ab0b5b9883a9b62f5aee /packages/sra-report/test | |
parent | 6aed4fb1ae27dabed027c855f2cbdc0bfb4f3b6b (diff) | |
parent | b74957acdfc8d67d154bcb4698acd7575db7cc47 (diff) | |
download | dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.gz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.bz2 dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.lz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.xz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.zst dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.zip |
Merge pull request #585 from 0xProject/feature/typedef
Add missing type definitions. Enable typedef linter rule
Diffstat (limited to 'packages/sra-report/test')
-rw-r--r-- | packages/sra-report/test/test_runner.ts | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/sra-report/test/test_runner.ts b/packages/sra-report/test/test_runner.ts index bf9b923e7..91ef6aa4e 100644 --- a/packages/sra-report/test/test_runner.ts +++ b/packages/sra-report/test/test_runner.ts @@ -3,7 +3,12 @@ import * as chaiAsPromised from 'chai-as-promised'; import * as dirtyChai from 'dirty-chai'; import * as _ from 'lodash'; import 'mocha'; -import { NewmanRunExecution, NewmanRunExecutionAssertion, NewmanRunSummary } from 'newman'; +import { + NewmanRunExecution, + NewmanRunExecutionAssertion, + NewmanRunExecutionAssertionError, + NewmanRunSummary, +} from 'newman'; import * as nock from 'nock'; import * as sraReportCollectionJSON from '../../postman_collections/sra_report.postman_collection.json'; @@ -33,7 +38,7 @@ export const testRunner = { nockInterceptor: nock.Interceptor, postmanCollectionFolderName: string, postmanCollectionRequestName: string, - ) { + ): void { const newmanRunOptions = { ...baseNewmanRunOptions, folder: postmanCollectionFolderName, @@ -87,7 +92,7 @@ export const testRunner = { postmanCollectionRequestName: string, malformedJson: object, correctJson: object, - ) { + ): void { const newmanRunOptions = { ...baseNewmanRunOptions, folder: postmanCollectionFolderName, @@ -116,7 +121,7 @@ function findAssertionErrorIfExists( summary: NewmanRunSummary, postmanCollectionRequestName: string, postmanCollectionAssertionName: string, -) { +): NewmanRunExecutionAssertionError | undefined { const matchingExecutionIfExists = _.find(summary.run.executions, (execution: NewmanRunExecution) => { return execution.item.name === postmanCollectionRequestName; }); |