Skip to content

Commit

Permalink
fix serviceRegistry unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Oct 2, 2023
1 parent a1a1de6 commit 6b31fdd
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/test/terminals/serviceRegistry.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,10 @@ suite('Terminal - Service Registry', () => {
[ICodeExecutionService, TerminalCodeExecutionProvider, 'standard'],
].forEach((args) => {
if (args.length === 2) {
services
.setup((s) =>
s.addSingleton(
typemoq.It.is((v) => args[0] === v),
typemoq.It.is((value) => args[1] === value),
),
)
.verifiable(typemoq.Times.once());
services.setup((s) => s.addSingleton(args[0] as any, args[1] as any)).verifiable(typemoq.Times.once());
} else {
services
.setup((s) =>
s.addSingleton(
typemoq.It.is((v) => args[0] === v),
typemoq.It.is((value) => args[1] === value),

typemoq.It.isValue((args[2] as unknown) as string),
),
)
.setup((s) => s.addSingleton(args[0] as any, args[1] as any, args[2] as string))
.verifiable(typemoq.Times.once());
}
});
Expand Down

0 comments on commit 6b31fdd

Please sign in to comment.