Skip to content

Commit

Permalink
Add additional test for sass profile
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Oct 31, 2020
1 parent 5936c3c commit 40f9680
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/profile/validator/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ func TestDefaultProfile(t *testing.T) {
assert.True(t, IsPathValid("foo.html", selectedProfile))
assert.True(t, IsPathValid("foo.xyz", selectedProfile))
}

func TestSASSProfile(t *testing.T) {
selectedProfile := "sass"

assert.False(t, IsPathValid("foo/node_modules/test.js", selectedProfile))
assert.False(t, IsPathValid(".git/config", selectedProfile))
assert.False(t, IsPathValid("foo/.git/config", selectedProfile))

assert.True(t, IsPathValid("foo.sass", selectedProfile))
assert.True(t, IsPathValid("foo.scss", selectedProfile))
}

0 comments on commit 40f9680

Please sign in to comment.