Skip to content

Commit

Permalink
Fix typo in internal/suite.go (#1332)
Browse files Browse the repository at this point in the history
* Fix typo in internal/suite.go

* update the test case
  • Loading branch information
shubham14bajpai committed Jan 5, 2024
1 parent 65ec56d commit beb9507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/suite.go
Expand Up @@ -79,7 +79,7 @@ func NewSuite() *Suite {

func (suite *Suite) Clone() (*Suite, error) {
if suite.phase != PhaseBuildTopLevel {
return nil, fmt.Errorf("cnanot clone suite after tree has been built")
return nil, fmt.Errorf("cannot clone suite after tree has been built")
}
return &Suite{
tree: &TreeNode{},
Expand Down
2 changes: 1 addition & 1 deletion internal/suite_test.go
Expand Up @@ -88,7 +88,7 @@ var _ = Describe("Suite", func() {
It("fails if the tree has already been built", func() {
Ω(suite.BuildTree()).Should(Succeed())
_, err := suite.Clone()
Ω(err).Should(MatchError("cnanot clone suite after tree has been built"))
Ω(err).Should(MatchError("cannot clone suite after tree has been built"))
})

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

0 comments on commit beb9507

Please sign in to comment.