New ๐ŸŒŠ wave for @helm

Commit 8e895302

8e895302c185Merged

Dmitrii Zhiliaev <[email protected]> ยท 1 year ago ยท 1 file ยท ~1 modified

Description

test: to testify

Details

Commit
8e895302c185
Parent
cc48c17625e1

cmd/helmwave/completion_internal_test.gomodifiedView file

@@ -1,7 +1,5 @@
11 package main
22
3-import "github.com/stretchr/testify/assert"
4-
53 func (ts *CliTestSuite) TestCompletion() {
64 tests := []struct {
75 args []string
@@ -33,15 +31,19 @@
3331
3432 for _, tt := range tests {
3533 if tt.fails {
36- assert.Panics(ts.T(), func() {
37- err := app.Run(tt.args)
38- assert.NoError(ts.T(), err, "unexpected error occurred")
39- }, "Expected panic when args are: %v", tt.args)
34+ ts.Run("fails case", func() {
35+ ts.Assert().Panics(func() {
36+ err := app.Run(tt.args)
37+ ts.Assert().NoError(err, "unexpected error occurred")
38+ }, "Expected panic when args are: %v", tt.args)
39+ })
4040 } else {
41- assert.NotPanics(ts.T(), func() {
42- err := app.Run(tt.args)
43- assert.NoError(ts.T(), err, "unexpected error occurred")
44- }, "Unexpected panic for args: %v", tt.args)
41+ ts.Run("success case", func() {
42+ ts.Assert().NotPanics(func() {
43+ err := app.Run(tt.args)
44+ ts.Assert().NoError(err, "unexpected error occurred")
45+ }, "Unexpected panic for args: %v", tt.args)
46+ })
4547 }
4648 }
4749 }