mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2025-03-14 08:36:10 +03:00
fix tests
This commit is contained in:
parent
662521ac60
commit
b92294ed13
@ -78,11 +78,11 @@ func TestMapValue_Nested(t *testing.T) {
|
||||
func TestMapValue_ErrorNotAMap(t *testing.T) {
|
||||
_, err := MapValue(1, "key")
|
||||
require.Error(t, err)
|
||||
assert.Equal(t, "value at path '' is not a map", err.Error())
|
||||
assert.Equal(t, "value at path '' is not a map, slice or array", err.Error())
|
||||
|
||||
_, err = MapValue(map[string]int{"key": 1}, "key.key2")
|
||||
require.Error(t, err)
|
||||
assert.Equal(t, "value at path 'key' is not a map", err.Error())
|
||||
assert.Equal(t, "value at path 'key' is not a map, slice or array", err.Error())
|
||||
}
|
||||
|
||||
func TestMapValue_ErrorKeyNotFound(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user