Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danipen committed Sep 5, 2024
1 parent 1bb88a2 commit 4934496
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/TextMateSharp.Grammars.Tests/GrammarTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public void Get_Available_Languages_Should_Return_Content()
{
RegistryOptions options = new RegistryOptions(ThemeName.Light);

Assert.That(options.GetAvailableLanguages().Count, Is.EqualTo(61));
Assert.That(options.GetAvailableLanguages().Count, Is.EqualTo(63));
}

[Test]
Expand Down Expand Up @@ -111,7 +111,10 @@ public void Assert_Every_Grammar_With_Language_Configuration_File_Has_Language_C
{
if (!string.IsNullOrEmpty(language.ConfigurationFile))
{
Assert.That(language.Configuration, Is.Not.Null);
if (language.Configuration == null)
{
Assert.Fail(string.Format("[{0} grammar]: Language configuration is null", language.Id));
}
}
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"languages": [
{
"id": "typst",
"configuration": "./syntaxes/language-configuration.json",
"configuration": "./language-configuration.json",
"extensions": [
".typ"
],
Expand All @@ -558,7 +558,7 @@
},
{
"id": "typst-code",
"configuration": "./syntaxes/language-configuration.json",
"configuration": "./language-configuration.json",
"extensions": [
".typc"
],
Expand Down

0 comments on commit 4934496

Please sign in to comment.