summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/objx/fixture_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-01-29 14:17:40 -0800
committerGitHub <noreply@github.com>2018-01-29 14:17:40 -0800
commit961c04cae992eadb42d286d2f85f8a675bdc68c8 (patch)
tree3408f2d06f847e966c53485e2d54c692cdd037c1 /vendor/github.com/stretchr/objx/fixture_test.go
parent8d66523ba7d9a77129844be476732ebfd5272d64 (diff)
downloadchat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.gz
chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.bz2
chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.zip
Upgrading server dependancies (#8154)
Diffstat (limited to 'vendor/github.com/stretchr/objx/fixture_test.go')
-rw-r--r--vendor/github.com/stretchr/objx/fixture_test.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/vendor/github.com/stretchr/objx/fixture_test.go b/vendor/github.com/stretchr/objx/fixture_test.go
index 27f7d9049..cefe8cdc6 100644
--- a/vendor/github.com/stretchr/objx/fixture_test.go
+++ b/vendor/github.com/stretchr/objx/fixture_test.go
@@ -1,8 +1,10 @@
-package objx
+package objx_test
import (
- "github.com/stretchr/testify/assert"
"testing"
+
+ "github.com/stretchr/objx"
+ "github.com/stretchr/testify/assert"
)
var fixtures = []struct {
@@ -79,20 +81,16 @@ var fixtures = []struct {
}
func TestFixtures(t *testing.T) {
-
for _, fixture := range fixtures {
-
- m := MustFromJSON(fixture.data)
+ m := objx.MustFromJSON(fixture.data)
// get the value
t.Logf("Running get fixture: \"%s\" (%v)", fixture.name, fixture)
value := m.Get(fixture.get.(string))
// make sure it matches
- assert.Equal(t, fixture.output, value.data,
+ assert.Equal(t, fixture.output, value.Data(),
"Get fixture \"%s\" failed: %v", fixture.name, fixture,
)
-
}
-
}