Skip to content

Commit fee73cd

Browse files
committed
Renames file + improves the assertion
1 parent 6d22c66 commit fee73cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/razorIntegrationTests/hover.integration.tests.ts renamed to test/razorIntegrationTests/hover.integration.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jestLib.describe(`Razor Hover ${testAssetWorkspace.description}`, function () {
3737
'vscode.executeHoverProvider',
3838
activeDocument,
3939
{
40-
line: 8,
40+
line: 7,
4141
character: 2,
4242
}
4343
);
@@ -46,6 +46,8 @@ jestLib.describe(`Razor Hover ${testAssetWorkspace.description}`, function () {
4646

4747
jestLib.expect(hover.length).toBe(1);
4848
const first = hover[0];
49-
jestLib.expect(first.contents).toContain('input');
49+
const answer =
50+
'The input element represents a typed data field, usually with a form control to allow the user to edit the data.';
51+
jestLib.expect((<{ language: string; value: string }>first.contents[0]).value).toContain(answer);
5052
});
5153
});

0 commit comments

Comments
 (0)