Skip to content

Commit bbfd5d1

Browse files
committed
test(azure-devops): update auth fixture after discovery refactor
1 parent 636c646 commit bbfd5d1

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

‎packages/source-control-azure-devops/src/server/AzureDevOpsSourceControlProvider.test.ts‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,24 @@ import * as AzureDevOpsSourceControlProvider from "./AzureDevOpsSourceControlPro
88
const { parseAuth } = AzureDevOpsSourceControlProvider.discovery;
99

1010
it("reads the signed-in Azure account and says when az is signed out", () => {
11-
assert.deepStrictEqual(parseAuth(processOutput("[email protected]\n")), {
12-
status: "authenticated",
13-
account: Option.some("[email protected]"),
14-
host: Option.some("dev.azure.com"),
15-
detail: Option.none(),
16-
});
11+
assert.deepStrictEqual(
12+
parseAuth(
13+
processOutput(
14+
JSON.stringify({
15+
authenticatedUser: {
16+
id: "azure-user-id",
17+
properties: { Account: { $value: "[email protected]" } },
18+
},
19+
}),
20+
),
21+
),
22+
{
23+
status: "authenticated",
24+
account: Option.some("[email protected]"),
25+
host: Option.some("dev.azure.com"),
26+
detail: Option.none(),
27+
},
28+
);
1729
assert.strictEqual(
1830
parseAuth(
1931
processOutput("", {

0 commit comments

Comments
 (0)