Skip to content

Commit 47a19c1

Browse files
author
Justin Chen
committed
changed from hard code length
1 parent 5163d2c commit 47a19c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ await PsesLanguageClient
11621162
var expectedArr = new int[5]
11631163
{
11641164
// line, index, token length, token type, token modifiers
1165-
0, 0, 8, 1, 0 //function token: line 0, index 0, length 8, type 1 = keyword, no modifiers
1165+
0, 0, scriptContent.Length, 1, 0 //function token: line 0, index 0, length of script, type 1 = keyword, no modifiers
11661166
};
11671167

11681168
Assert.Equal(expectedArr, result.Data.ToArray());

0 commit comments

Comments
 (0)