diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 02:59:31 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 02:59:31 +0800 |
commit | 0e76d66f2457015bbc421e7ead2887008fb54ffc (patch) | |
tree | e1ef71e3f723172cce93e7ff1170b817ffc0ce7a /contracts/test-utils/src/test_with_reference.ts | |
parent | 2b523a36c58b207a27dee4078237919d628dc588 (diff) | |
download | dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar.gz dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar.bz2 dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar.lz dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar.xz dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.tar.zst dexon-sol-tools-0e76d66f2457015bbc421e7ead2887008fb54ffc.zip |
Fix linter errors
Diffstat (limited to 'contracts/test-utils/src/test_with_reference.ts')
-rw-r--r-- | contracts/test-utils/src/test_with_reference.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contracts/test-utils/src/test_with_reference.ts b/contracts/test-utils/src/test_with_reference.ts index b80be4a6c..75d15b0aa 100644 --- a/contracts/test-utils/src/test_with_reference.ts +++ b/contracts/test-utils/src/test_with_reference.ts @@ -26,7 +26,7 @@ type PromiseResult<T> = Value<T> | ErrorMessage; // TODO(albrow): This seems like a generic utility function that could exist in // lodash. We should replace it by a library implementation, or move it to our // own. -async function evaluatePromise<T>(promise: Promise<T>): Promise<PromiseResult<T>> { +async function evaluatePromiseAsync<T>(promise: Promise<T>): Promise<PromiseResult<T>> { try { return new Value<T>(await promise); } catch (e) { @@ -93,10 +93,10 @@ export async function testWithReferenceFuncAsync( values: any[], ): Promise<void> { // Measure correct behaviour - const expected = await evaluatePromise(referenceFuncAsync(...values)); + const expected = await evaluatePromiseAsync(referenceFuncAsync(...values)); // Measure actual behaviour - const actual = await evaluatePromise(testFuncAsync(...values)); + const actual = await evaluatePromiseAsync(testFuncAsync(...values)); // Compare behaviour if (expected instanceof ErrorMessage) { |