-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathoptions_test.go
30 lines (23 loc) · 962 Bytes
/
options_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2024 Bjørn Erik Pedersen
// SPDX-License-Identifier: MIT
package godartsass
import (
"testing"
qt "github.com/frankban/quicktest"
)
func TestParseOutputStyle(t *testing.T) {
c := qt.New(t)
c.Assert(ParseOutputStyle("compressed"), qt.Equals, OutputStyleCompressed)
c.Assert(ParseOutputStyle("ComPressed"), qt.Equals, OutputStyleCompressed)
c.Assert(ParseOutputStyle("expanded"), qt.Equals, OutputStyleExpanded)
c.Assert(ParseOutputStyle("foo"), qt.Equals, OutputStyleExpanded)
}
func TestParseSourceSyntax(t *testing.T) {
c := qt.New(t)
c.Assert(ParseSourceSyntax("scss"), qt.Equals, SourceSyntaxSCSS)
c.Assert(ParseSourceSyntax("css"), qt.Equals, SourceSyntaxCSS)
c.Assert(ParseSourceSyntax("cSS"), qt.Equals, SourceSyntaxCSS)
c.Assert(ParseSourceSyntax("sass"), qt.Equals, SourceSyntaxSASS)
c.Assert(ParseSourceSyntax("indented"), qt.Equals, SourceSyntaxSASS)
c.Assert(ParseSourceSyntax("foo"), qt.Equals, SourceSyntaxSCSS)
}