vendor dependencies with dep

This commit is contained in:
dhax 2017-09-25 20:20:52 +02:00
parent 93d8310491
commit 1384296a47
2712 changed files with 965742 additions and 0 deletions

View 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%")
}