Skip to content

Commit

Permalink
Fix the error message in the assert prompt (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtao69039 authored Apr 9, 2024
1 parent de47d57 commit 5c5ccf6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ await langService.DoHandleRebuildIntellisenseNotification(
var afterTableCreationCompletionItems = await langService.GetCompletionItems(
textDocumentPosition, connectionInfoResult.ScriptFile, connectionInfoResult.ConnectionInfo);

Assert.True(afterTableCreationCompletionItems.Length == 1, $"Should only have a single completion item after rebuilding Intellisense cache. Actual : [{string.Join(',', initialCompletionItems.Select(ci => ci.Label))}]");
Assert.True(afterTableCreationCompletionItems[0].InsertText == "foo", $"Expected single completion item 'foo'. Actual : [{string.Join(',', initialCompletionItems.Select(ci => ci.Label))}]");
Assert.True(afterTableCreationCompletionItems.Length == 1, $"Should only have a single completion item after rebuilding Intellisense cache. Actual : [{string.Join(',', afterTableCreationCompletionItems.Select(ci => ci.Label))}]");
Assert.True(afterTableCreationCompletionItems[0].InsertText == "foo", $"Expected single completion item 'foo'. Actual : [{string.Join(',', afterTableCreationCompletionItems.Select(ci => ci.Label))}]");
}
finally
{
Expand Down

0 comments on commit 5c5ccf6

Please sign in to comment.