Skip to content

Commit

Permalink
Format and comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi committed May 15, 2024
1 parent d777494 commit 7882554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Refiners/TypeScriptRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ private static CodeInterface CreateModelInterface(CodeClass modelClass, Func<Cod

var i = 1;
while (namespaceOfModel.FindChildByName<CodeClass>(temporaryInterfaceName, false) != null)
{
{// We already know an Interface doesn't exist with the name. Make sure we don't collide with an existing class name in the namespace.
temporaryInterfaceName = $"{temporaryInterfaceName}{i++}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public async Task AddsModelInterfaceForAModelClassWithoutCollision()
var modelsNS = root.FindNamespaceByName(generationConfiguration.ModelsNamespaceName);
var codeFile = modelsNS.FindChildByName<CodeFile>(IndexFileName, false);
Assert.NotNull(codeFile);
Assert.Equal(2,codeFile.Interfaces.Count());
Assert.Equal(2, codeFile.Interfaces.Count());
Assert.Contains(codeFile.Interfaces, static x => "hostModel".Equals(x.Name, StringComparison.OrdinalIgnoreCase));
Assert.Contains(codeFile.Interfaces, static x => "hostModelInterface".Equals(x.Name, StringComparison.OrdinalIgnoreCase));
}
Expand Down

0 comments on commit 7882554

Please sign in to comment.