5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 11:43:20 +08:00
wails/v3/internal/templates/templates_test.go
2023-01-22 15:39:57 +11:00

35 lines
612 B
Go

package templates
import (
"testing"
"github.com/wailsapp/wails/v3/internal/flags"
)
func TestInstall(t *testing.T) {
type args struct {
}
tests := []struct {
name string
options *flags.Init
wantErr bool
}{
{
name: "should install template",
options: &flags.Init{
ProjectName: "test",
TemplateName: "svelte",
Quiet: false,
},
wantErr: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := Install(tt.options); (err != nil) != tt.wantErr {
t.Errorf("Install() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}