aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report/src/globals.d.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-13 02:00:08 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-14 06:54:33 +0800
commitb08374f0ba2d1c163f1c8d75a06f642101e1e15d (patch)
treea09e61a6131cc0dbd35fc963f09b1a774ca61959 /packages/sra-report/src/globals.d.ts
parentdf9e7385ad86a16db195fa75db18dd6ee21eedf1 (diff)
downloaddexon-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/globals.d.ts')
-rw-r--r--packages/sra-report/src/globals.d.ts25
1 files changed, 23 insertions, 2 deletions
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' {