Skip to content

Commit

Permalink
Fix failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 6, 2023
1 parent 4447352 commit 31b8a04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions YarnSpinner.LanguageServer.Tests/LanguageServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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'.
Expand Down

0 comments on commit 31b8a04

Please # to comment.