Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1626 committed Aug 29, 2019
1 parent 60a19e6 commit a4be4fb
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions e2e/transform/transform-runner/runner.ts
Expand Up @@ -38,30 +38,32 @@ export default class BaseTestRunner {
(promise, test) =>
mutex(() =>
promise
.then(async () : Promise<TestResult> => {
await onStart(test);
return {
...createEmptyTestResult(),
numPassingTests: 1,
testFilePath: test.path,
testResults: [
{
ancestorTitles: [],
duration: 2,
failureMessages: [],
fullName: 'sample test',
location: null,
numPassingAsserts: 1,
status: 'passed',
title: 'sample test',
},
],
};
})
.then(
async (): Promise<TestResult> => {
await onStart(test);
return {
...createEmptyTestResult(),
numPassingTests: 1,
testFilePath: test.path,
testResults: [
{
ancestorTitles: [],
duration: 2,
failureMessages: [],
fullName: 'sample test',
location: null,
numPassingAsserts: 1,
status: 'passed',
title: 'sample test',
},
],
};
}
)
.then(result => onResult(test, result))
.catch(err => onFailure(test, err))
),
Promise.resolve()
);
}
}
}

0 comments on commit a4be4fb

Please sign in to comment.