Skip to content

Commit e71d8b4

Browse files
committed
Fixed tests
1 parent b61aa1a commit e71d8b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

properties_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ func TestDeleteUnexpandedPropsFromString(t *testing.T) {
100100
str := "{key1} == {key2} == {key3} == true"
101101

102102
str = p.ExpandPropsInString(str)
103-
str, err := DeleteUnexpandedPropsFromString(str)
104-
require.NoError(t, err)
103+
str = DeleteUnexpandedPropsFromString(str)
105104
require.Equal(t, "42 == 42 == == true", str)
106105
}
107106

@@ -112,8 +111,7 @@ func TestDeleteUnexpandedPropsFromString2(t *testing.T) {
112111
str := "{key1} == {key2} == {key3} == true"
113112

114113
str = p.ExpandPropsInString(str)
115-
str, err := DeleteUnexpandedPropsFromString(str)
116-
require.NoError(t, err)
114+
str = DeleteUnexpandedPropsFromString(str)
117115
require.Equal(t, " == 42 == == true", str)
118116
}
119117

0 commit comments

Comments
 (0)