Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Sep 11, 2023
1 parent 0a7339d commit c480c7e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/testing/common/testingAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveDiscovery(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveDiscovery ${data}`);
console.log(`resolveDiscovery ${data}`);
actualData = data;
return Promise.resolve();
});
Expand Down Expand Up @@ -249,7 +249,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
actualData = data;
return Promise.resolve();
});
Expand Down Expand Up @@ -293,7 +293,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceError(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
traceLog(`resolveExecution ${data}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status, can be subtest success or failure
Expand Down Expand Up @@ -346,7 +346,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
actualData = data;
return Promise.resolve();
});
Expand Down Expand Up @@ -397,7 +397,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'success', "Expected status to be 'success'");
Expand Down Expand Up @@ -449,7 +449,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'error', "Expected status to be 'error'");
Expand Down Expand Up @@ -500,7 +500,7 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
traceLog(`resolveExecution ${data}`);
console.log(`resolveExecution ${data}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'error', "Expected status to be 'error'");
Expand Down

0 comments on commit c480c7e

Please sign in to comment.