Skip to content

Commit affca89

Browse files
committed
fix(verifier): properly wrap pact-node q promise in verifier
1 parent 3703e81 commit affca89

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/dsl/verifier.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { Promise } from "es6-promise";
88

99
export class Verifier {
1010
public verifyProvider(opts: VerifierOptions): Promise<string> {
11-
return pact.verifyPacts(opts)
12-
.then((value: string) => Promise.resolve(value), (error: any) => Promise.reject(error));
11+
return new Promise((resolve, reject) => {
12+
pact.verifyPacts(opts)
13+
.then((value: string) => resolve(value), (error: any) => reject(error));
14+
});
1315
}
1416
}

0 commit comments

Comments
 (0)