From 31b8a04c1733208f266494b690f74e5613831a78 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Mon, 6 Mar 2023 16:09:38 +1100 Subject: [PATCH] Fix failing unit tests --- .../LanguageServerTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/YarnSpinner.LanguageServer.Tests/LanguageServerTests.cs b/YarnSpinner.LanguageServer.Tests/LanguageServerTests.cs index b0df5663a..82a9f55ef 100644 --- a/YarnSpinner.LanguageServer.Tests/LanguageServerTests.cs +++ b/YarnSpinner.LanguageServer.Tests/LanguageServerTests.cs @@ -52,19 +52,19 @@ public async Task Server_OnEnteringACommand_ShouldReceiveCompletions() using (new AssertionScope()) { - completions.Should().Contain(c => c.Label == "set command" && c.Kind == CompletionItemKind.Keyword, + completions.Should().Contain(c => c.Label == "set" && c.Kind == CompletionItemKind.Keyword, "because 'set' is a keyword in Yarn"); - completions.Should().Contain(c => c.Label == "declare command" && c.Kind == CompletionItemKind.Keyword, + completions.Should().Contain(c => c.Label == "declare" && c.Kind == CompletionItemKind.Keyword, "because 'declare' is part of the Yarn syntax "); - completions.Should().Contain(c => c.Label == "jump command" && c.Kind == CompletionItemKind.Keyword, + completions.Should().Contain(c => c.Label == "jump" && c.Kind == CompletionItemKind.Keyword, "because 'jump' is part of the Yarn syntax "); completions.Should().Contain(c => c.Label == "wait" && c.Kind == CompletionItemKind.Function, "because 'wait' is a built-in Yarn command"); - completions.Should().Contain(c => c.Label == "stop command" && c.Kind == CompletionItemKind.Function, + completions.Should().Contain(c => c.Label == "stop" && c.Kind == CompletionItemKind.Function, "because 'stop' is a built-in Yarn command"); completions.Should().NotContain(c => c.Label == "Start", @@ -173,7 +173,7 @@ public async Task Server_OnJumpCommand_ShouldReceiveNodeNameCompletions() Position = new Position(Line, 2), }); - completions.Should().Contain(c => c.Label == "jump command" && c.Kind == CompletionItemKind.Keyword, + completions.Should().Contain(c => c.Label == "jump" && c.Kind == CompletionItemKind.Keyword, "because we have not yet entered the word 'jump'."); // Type in the 'jump'.