Skip to content

Commit

Permalink
fixing Test file
Browse files Browse the repository at this point in the history
Signed-off-by: manisha kumari <[email protected]>
  • Loading branch information
ManishaKumari295 committed May 30, 2024
1 parent f745cfd commit d14fc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestCheckArgs(t *testing.T) {
event := &corev2.Event{}
err := checkArgs(event)
fmt.Println("ERR is", err)
assert.NotNil(t, err)
assert.NotNil(t, err.Error())
assert.Equal(t, fmt.Sprintf("--%s or SLACK_WEBHOOK_URL environment variable is required", webHookURL), err.Error())

// Test case where webhook URL is provided
Expand Down

0 comments on commit d14fc35

Please sign in to comment.