Skip to content

Commit beb9507

Browse files
Fix typo in internal/suite.go (#1332)
* Fix typo in internal/suite.go * update the test case
1 parent 65ec56d commit beb9507

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/suite.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func NewSuite() *Suite {
7979

8080
func (suite *Suite) Clone() (*Suite, error) {
8181
if suite.phase != PhaseBuildTopLevel {
82-
return nil, fmt.Errorf("cnanot clone suite after tree has been built")
82+
return nil, fmt.Errorf("cannot clone suite after tree has been built")
8383
}
8484
return &Suite{
8585
tree: &TreeNode{},

internal/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var _ = Describe("Suite", func() {
8888
It("fails if the tree has already been built", func() {
8989
Ω(suite.BuildTree()).Should(Succeed())
9090
_, err := suite.Clone()
91-
Ω(err).Should(MatchError("cnanot clone suite after tree has been built"))
91+
Ω(err).Should(MatchError("cannot clone suite after tree has been built"))
9292
})
9393

9494
It("generates the same tree as the original", func() {

0 commit comments

Comments
 (0)