From b08374f0ba2d1c163f1c8d75a06f642101e1e15d Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Mon, 12 Mar 2018 11:00:08 -0700 Subject: Add scaffolding for sra-report collection unit tests --- packages/sra-report/src/globals.d.ts | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'packages/sra-report/src/globals.d.ts') diff --git a/packages/sra-report/src/globals.d.ts b/packages/sra-report/src/globals.d.ts index 0d3beb446..1efa4fe6d 100644 --- a/packages/sra-report/src/globals.d.ts +++ b/packages/sra-report/src/globals.d.ts @@ -1,6 +1,27 @@ +declare module 'dirty-chai'; + declare module 'newman' { - // tslint:disable-next-line:completed-docs - export function run(options: any, callback?: () => void): void; + export interface NewmanRunSummary { + run: NewmanRun; + } + export interface NewmanRun { + executions: NewmanRunExecution[]; + } + export interface NewmanRunExecution { + item: NewmanRunExecutionItem; + assertions: NewmanRunExecutionAssertion[]; + } + export interface NewmanRunExecutionItem { + name: string; + } + export interface NewmanRunExecutionAssertion { + assertion: string; + error: NewmanRunExecutionAssertionError; + } + export interface NewmanRunExecutionAssertionError { + message: string; + } + export function run(options: any, callback?: (err: Error | null, summary: NewmanRunSummary) => void): void; } declare module '*.json' { -- cgit v1.2.3