Skip to content

Commit f9bff26

Browse files
committed
#151 Fix test
1 parent 5ec54e7 commit f9bff26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

translator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ func TestDefaultRSSTranslator_Translate(t *testing.T) {
3939
// workaround: move the actual extensions through a round of json marshalling so that we get the same
4040
for _, i := range actual.Items {
4141
if len(i.Extensions) > 0 {
42-
b, _ := json.Marshal(i.Extensions)
43-
json.Unmarshal(b, &i.Extensions)
42+
b, _ := jsonEncoding.Marshal(i.Extensions)
43+
jsonEncoding.Unmarshal(b, &i.Extensions)
4444
}
4545
}
4646

0 commit comments

Comments
 (0)