Skip to content

Commit

Permalink
Correct typos
Browse files Browse the repository at this point in the history
- unkown -> unknown
- pased -> passed
- disappeard -> disappeared
  • Loading branch information
Birdrock authored and onsi committed Feb 5, 2022
1 parent 44dec6a commit 6e56bd9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core_dsl.go
Expand Up @@ -221,7 +221,7 @@ func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
case Labels:
suiteLabels = append(suiteLabels, arg...)
default:
configErrors = append(configErrors, types.GinkgoErrors.UnkownTypePassedToRunSpecs(arg))
configErrors = append(configErrors, types.GinkgoErrors.UnknownTypePassedToRunSpecs(arg))
}
}
exitIfErrors(configErrors)
Expand Down
4 changes: 2 additions & 2 deletions ginkgo/command/program_test.go
Expand Up @@ -102,7 +102,7 @@ var _ = Describe("Program", func() {
})
})

Context("when called with an unkown subcommand", func() {
Context("when called with an unknown subcommand", func() {
BeforeEach(func() {
program.RunAndExit([]string{"omicron", "xi"})
})
Expand Down Expand Up @@ -283,7 +283,7 @@ var _ = Describe("Program", func() {
})
})

Context("when an unkown flag is used", func() {
Context("when an unknown flag is used", func() {
BeforeEach(func() {
program.RunAndExit([]string{"omicron", "beta", "-zanzibar"})
})
Expand Down
2 changes: 1 addition & 1 deletion integration/suite_setup_test.go
Expand Up @@ -78,7 +78,7 @@ var _ = Describe("SuiteSetup", func() {
Eventually(session).Should(gexec.Exit(1))
output := string(session.Out.Contents()) + string(session.Err.Contents())

Ω(output).Should(ContainSubstring("Process #1 disappeard before SynchronizedBeforeSuite could report back"))
Ω(output).Should(ContainSubstring("Process #1 disappeared before SynchronizedBeforeSuite could report back"))
Ω(output).Should(ContainSubstring("Ginkgo timed out waiting for all parallel procs to report back"))
})
})
Expand Down
10 changes: 5 additions & 5 deletions types/errors.go
Expand Up @@ -182,8 +182,8 @@ func (g ginkgoErrors) InvalidDeclarationOfFocusedAndPending(cl CodeLocation, nod

func (g ginkgoErrors) UnknownDecorator(cl CodeLocation, nodeType NodeType, decorator interface{}) error {
return GinkgoError{
Heading: "Unkown Decorator",
Message: formatter.F(`[%s] node was passed an unkown decorator: '%#v'`, nodeType, decorator),
Heading: "Unknown Decorator",
Message: formatter.F(`[%s] node was passed an unknown decorator: '%#v'`, nodeType, decorator),
CodeLocation: cl,
DocLink: "node-decorators-overview",
}
Expand Down Expand Up @@ -433,16 +433,16 @@ func (g ginkgoErrors) SynchronizedBeforeSuiteFailedOnProc1() error {

func (g ginkgoErrors) SynchronizedBeforeSuiteDisappearedOnProc1() error {
return GinkgoError{
Heading: "Process #1 disappeard before SynchronizedBeforeSuite could report back",
Heading: "Process #1 disappeared before SynchronizedBeforeSuite could report back",
Message: "Ginkgo parallel process #1 disappeared before the first SynchronizedBeforeSuite function completed. This suite will now abort.",
}
}

/* Configuration errors */

func (g ginkgoErrors) UnkownTypePassedToRunSpecs(value interface{}) error {
func (g ginkgoErrors) UnknownTypePassedToRunSpecs(value interface{}) error {
return GinkgoError{
Heading: "Unkown Type pased to RunSpecs",
Heading: "Unknown Type passed to RunSpecs",
Message: fmt.Sprintf("RunSpecs() accepts labels, and configuration of type types.SuiteConfig and/or types.ReporterConfig.\n You passed in: %v", value),
}
}
Expand Down

0 comments on commit 6e56bd9

Please sign in to comment.