vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 additions and 0 deletions
16
vendor/github.com/vanng822/css/styledeclaration_test.go
generated
vendored
Normal file
16
vendor/github.com/vanng822/css/styledeclaration_test.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package css
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDeclWithImportan(t *testing.T) {
|
||||
decl := NewCSSStyleDeclaration("width", "100%", 1)
|
||||
assert.Equal(t, decl.Text(), "width: 100% !important")
|
||||
}
|
||||
|
||||
func TestDeclWithoutImportan(t *testing.T) {
|
||||
decl := NewCSSStyleDeclaration("width", "100%", 0)
|
||||
assert.Equal(t, decl.Text(), "width: 100%")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue