Skip to content

Commit 34c5e8a

Browse files
author
Carolina BorbonMiranda
committed
fix typos, and add scope to description of BuildDependencyGraph()
1 parent afbef18 commit 34c5e8a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/cls/IPM/Storage/Module.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,8 @@ ClassMethod HasScope(
879879
/// <li>Depth in the dependency tree (1 for direct dependencies, 2 for transitive, etc.)</li>
880880
/// <li>Repository from which the module will be obtained (empty if already installed)</li>
881881
/// <li>Version string of the module to be installed</li>
882+
/// <li>Display name of the module</li>
883+
/// <li>Scope of the module, or empty string if the dependency is not scoped</li>
882884
/// </ul>
883885
/// <p>
884886
/// <b>Parameters:</b><br>

tests/integration_tests/Test/PM/Integration/BuildDependencyGraphScopedDeps.cls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Method TestDependencyGraphScopedDependency()
3131
{
3232
do $$$AssertStatusOK(##class(%IPM.Utils.Module).LoadModuleFromDirectory(..RepoPath_..#MODNAME), "Successfully loaded module from directory.")
3333
set module = ##class(%IPM.Storage.Module).NameOpen(..#MODNAME,,.sc)
34-
do $$$AssertStatusOK(sc, "Succcessfully opened module object.")
34+
do $$$AssertStatusOK(sc, "Successfully opened module object.")
3535

3636
// Expected dependencyGraph format: dependencyGraph(<module name>) = $listbuild(<depth>, <server>, <version>, <display name>, <scope>)
3737
set scopes = $listbuild("test", "verify")
@@ -41,16 +41,16 @@ Method TestDependencyGraphScopedDependency()
4141
// Check non-scoped dependency
4242
do $$$AssertTrue($data(dependencyGraph("module-b")))
4343
set $listbuild(,,,,moduleBScope) = dependencyGraph("module-b")
44-
do $$$AssertEquals(moduleBScope, "", "module-b scope succssfully checked to be empty.")
44+
do $$$AssertEquals(moduleBScope, "", "module-b scope successfully checked to be empty.")
4545

4646
// Check scoped dependencies
4747
do $$$AssertTrue($data(dependencyGraph("module-c")))
4848
set $listbuild(,,,,moduleCScope) = dependencyGraph("module-c")
49-
do $$$AssertEquals(moduleCScope, "test", "module-c scope succssfully checked to be 'test'.")
49+
do $$$AssertEquals(moduleCScope, "test", "module-c scope successfully checked to be 'test'.")
5050

5151
do $$$AssertTrue($data(dependencyGraph("module-d")))
5252
set $listbuild(,,,,moduleDScope) = dependencyGraph("module-d")
53-
do $$$AssertEquals(moduleDScope, "verify", "module-d scope succssfully checked to be 'verify'.")
53+
do $$$AssertEquals(moduleDScope, "verify", "module-d scope successfully checked to be 'verify'.")
5454
}
5555

5656
}

0 commit comments

Comments
 (0)