Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Take newer typemoq (with manual workaround from #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jun 8, 2016
1 parent ee5dad9 commit 762d031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"tslint": "^3.10.2",
"tslint-eslint-rules": "^1.3.0",
"tslint-microsoft-contrib": "^2.0.3",
"typemoq": "0.0.6",
"typemoq": "0.1.1",
"typescript": "^1.8.10",
"typings": "^1.0.4"
},
Expand Down
8 changes: 4 additions & 4 deletions test/chrome/chromeDebugAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ suite('ChromeDebugAdapter', () => {
lines.forEach((lineNumber, i) => {
const columnNumber = cols[i];

// non-verifiable at the moment - see https://github.com/florinn/typemoq/issues/10
mockChromeConnection
.setup(x => x.debugger_setBreakpointByUrl(It.isValue(FILE_NAME), It.isValue(lineNumber), It.isValue(columnNumber)))
.returns(() => Promise.resolve(
<Chrome.Debugger.SetBreakpointByUrlResponse>{ id: 0, result: { breakpointId: BP_ID + i, locations: [{ scriptId, lineNumber, columnNumber }] } }));
<Chrome.Debugger.SetBreakpointByUrlResponse>{ id: 0, result: { breakpointId: BP_ID + i, locations: [{ scriptId, lineNumber, columnNumber }] } }))
.verifiable();
});
}

function expectRemoveBreakpoint(indicies: number[]): void {
indicies.forEach(i => {
// non-verifiable at the moment - see https://github.com/florinn/typemoq/issues/10
mockChromeConnection
.setup(x => x.debugger_removeBreakpoint(It.isValue(BP_ID + i)))
.returns(() => Promise.resolve(<Chrome.Response>{ id: 0 }));
.returns(() => Promise.resolve(<Chrome.Response>{ id: 0 }))
.verifiable();
});
}

Expand Down

0 comments on commit 762d031

Please sign in to comment.