mirror of
https://github.com/apple/pkl.git
synced 2026-03-20 16:23:57 +01:00
Fix spelling errors (#846)
Also: change checksums due to filename and content changes, and fix language snippet test output to produce correct error messages
This commit is contained in:
@@ -40,7 +40,7 @@ class AnalyzeCommand(helpLink: String) :
|
||||
ModulesCommand(
|
||||
name = "imports",
|
||||
helpLink = helpLink,
|
||||
help = "Prints the the graph of modules imported by the input module(s)."
|
||||
help = "Prints the graph of modules imported by the input module(s)."
|
||||
) {
|
||||
|
||||
private val outputPath: Path? by
|
||||
|
||||
@@ -1242,7 +1242,7 @@ result = someLib.x
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `gives decent error message if certificate file is emtpy`(@TempDir tempDir: Path) {
|
||||
fun `gives decent error message if certificate file is empty`(@TempDir tempDir: Path) {
|
||||
val emptyCerts = tempDir.writeEmptyFile("empty.pem")
|
||||
val err = assertThrows<CliException> { evalModuleThatImportsPackage(emptyCerts) }
|
||||
assertThat(err).hasMessageContaining("CA certificate file `${emptyCerts.pathString}` is empty.")
|
||||
@@ -1313,7 +1313,7 @@ result = someLib.x
|
||||
val options =
|
||||
CliEvaluatorOptions(
|
||||
CliBaseOptions(
|
||||
sourceModules = listOf(URI("package://localhost:1/birds@0.5.0#/catalog/Ostritch.pkl")),
|
||||
sourceModules = listOf(URI("package://localhost:1/birds@0.5.0#/catalog/Ostrich.pkl")),
|
||||
noCache = true,
|
||||
httpProxy = URI(wwRuntimeInfo.httpBaseUrl),
|
||||
caCertificates = listOf(FileTestUtils.selfSignedCertificate),
|
||||
@@ -1324,7 +1324,7 @@ result = someLib.x
|
||||
assertThat(output)
|
||||
.isEqualTo(
|
||||
"""
|
||||
name = "Ostritch"
|
||||
name = "Ostrich"
|
||||
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
|
||||
Reference in New Issue
Block a user