Skip to content

Commit

Permalink
Add test for new method on valid.Autoplan type
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshiiSinfield committed Nov 28, 2019
1 parent 8ba1b6d commit 0f93976
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/events/yaml/valid/repo_cfg_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package valid_test

import (
"testing"

. "github.com/runatlantis/atlantis/testing"
)

func TestAutoplan_SetEnabled(t *testing.T) {
Equals(t, true, (DefaultValidAutoplan().SetEnabled(true)).Enabled)
Equals(t, false, (DefaultValidAutoplan().SetEnabled(false)).Enabled)
}

0 comments on commit 0f93976

Please sign in to comment.