watch-spring/internal/notifier_test.go

28 lines
456 B
Go
Raw Permalink Normal View History

2024-08-23 14:11:38 +02:00
package internal
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDeploy(t *testing.T) {
err := Execute(binaryPath, scriptPath)
require.NoError(t, err)
}
func TestDeployError(t *testing.T) {
err := Execute("", "")
require.Error(t, err)
}
func TestExecute(t *testing.T) {
err := Execute(binaryPath, scriptPath)
require.NoError(t, err)
}
func TestExecuteError(t *testing.T) {
err := Execute("", "")
require.Error(t, err)
}