Skip to content

Commit facb0b8

Browse files
committed
Fix tests
1 parent 98389fa commit facb0b8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/github/pullRequestOverview.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('PullRequestOverview', function () {
8989
await PullRequestOverviewPanel.createOrShow(telemetry, EXTENSION_URI, pullRequestManager, identity, prModel);
9090

9191
assert(
92-
createWebviewPanel.calledWith(sinonMatch.string, 'Pull Request #1000', vscode.ViewColumn.One, {
92+
createWebviewPanel.calledWith(sinonMatch.string, '#1000', vscode.ViewColumn.One, {
9393
enableScripts: true,
9494
retainContextWhenHidden: true,
9595
localResourceRoots: [vscode.Uri.joinPath(EXTENSION_URI, 'dist')],
@@ -130,7 +130,7 @@ describe('PullRequestOverview', function () {
130130
const panel0 = PullRequestOverviewPanel.findPanel(identity0.owner, identity0.repo, identity0.number);
131131
assert.notStrictEqual(panel0, undefined);
132132
assert.strictEqual(createWebviewPanel.callCount, 1);
133-
assert.strictEqual(panel0!.getCurrentTitle(), 'Pull Request #1000');
133+
assert.strictEqual(panel0!.getCurrentTitle(), '#1000 New feature');
134134

135135
// Opening the same PR again should reuse the existing panel
136136
await PullRequestOverviewPanel.createOrShow(telemetry, EXTENSION_URI, pullRequestManager, identity0, prModel0);
@@ -185,8 +185,8 @@ describe('PullRequestOverview', function () {
185185
assert.notStrictEqual(panel1, undefined);
186186
assert.notStrictEqual(panel0, panel1);
187187
assert.strictEqual(createWebviewPanel.callCount, 2);
188-
assert.strictEqual(panel0!.getCurrentTitle(), 'Pull Request #1000');
189-
assert.strictEqual(panel1!.getCurrentTitle(), 'Pull Request #2000');
188+
assert.strictEqual(panel0!.getCurrentTitle(), '#1000 New feature');
189+
assert.strictEqual(panel1!.getCurrentTitle(), '#2000 New feature');
190190
});
191191
});
192192
});

0 commit comments

Comments
 (0)