mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-22 18:10:40 +00:00
22 lines
374 B
Go
22 lines
374 B
Go
|
package pretty
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestSecret(t *testing.T) {
|
||
|
ok, err := diff("testdata/secret.yml")
|
||
|
if err != nil {
|
||
|
t.Error(err)
|
||
|
} else if !ok {
|
||
|
t.Errorf("Unepxected formatting")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestExternalSecret(t *testing.T) {
|
||
|
ok, err := diff("testdata/secret_extern.yml")
|
||
|
if err != nil {
|
||
|
t.Error(err)
|
||
|
} else if !ok {
|
||
|
t.Errorf("Unepxected formatting")
|
||
|
}
|
||
|
}
|