We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec54e7 commit f9bff26Copy full SHA for f9bff26
translator_test.go
@@ -39,8 +39,8 @@ func TestDefaultRSSTranslator_Translate(t *testing.T) {
39
// workaround: move the actual extensions through a round of json marshalling so that we get the same
40
for _, i := range actual.Items {
41
if len(i.Extensions) > 0 {
42
- b, _ := json.Marshal(i.Extensions)
43
- json.Unmarshal(b, &i.Extensions)
+ b, _ := jsonEncoding.Marshal(i.Extensions)
+ jsonEncoding.Unmarshal(b, &i.Extensions)
44
}
45
46
0 commit comments