From dde570706a664f53eeb3d0033824f9992ee1b840 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Wed, 30 Oct 2019 13:26:29 -0700 Subject: [PATCH] `@0x:contracts-integrations` Put final cleaning touches on the function assertion set --- contracts/integrations/test/utils/function_assertions.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contracts/integrations/test/utils/function_assertions.ts b/contracts/integrations/test/utils/function_assertions.ts index 2926bacb1b..fd0f261db8 100644 --- a/contracts/integrations/test/utils/function_assertions.ts +++ b/contracts/integrations/test/utils/function_assertions.ts @@ -28,7 +28,7 @@ export interface Result { * @param after A function that will be run after a call to the contract wrapper * function. */ -export interface Condition { +export interface Condition { before: (...args: any[]) => Promise; after: (beforeInfo: TBefore, result: Result, ...args: any[]) => Promise; } @@ -53,10 +53,8 @@ export interface RunResult { * This class implements `Assertion` and represents a "Hoare Triple" that can be * executed. */ -export class FunctionAssertion implements Assertion { +export class FunctionAssertion implements Assertion { // A condition that will be applied to `wrapperFunction`. - // Note: `TBefore | undefined` is used because the `before` and `after` functions - // are optional in `Condition`. public condition: Condition; // The wrapper function that will be wrapped in assertions.