| Index: tests/lib/convert/codec2_test.dart
|
| diff --git a/tests/lib/convert/codec2_test.dart b/tests/lib/convert/codec2_test.dart
|
| index fce07ea580c9a3347071594ab276f8e44da458c0..e8fa875df22eaf7f11a272ab9c4799572e7fc77b 100644
|
| --- a/tests/lib/convert/codec2_test.dart
|
| +++ b/tests/lib/convert/codec2_test.dart
|
| @@ -22,12 +22,12 @@ main() {
|
|
|
| // Test that the reviver is passed to the decoder.
|
| var decoded = JSON.decode('{"p": 5}', reviver: (k, v) {
|
| - if (k == "") return v;
|
| + if (k == null) return v;
|
| return v * 2;
|
| });
|
| Expect.equals(10, decoded["p"]);
|
| var jsonWithReviver = new JsonCodec.withReviver((k, v) {
|
| - if (k == "") return v;
|
| + if (k == null) return v;
|
| return v * 2;
|
| });
|
| decoded = jsonWithReviver.decode('{"p": 5}');
|
|
|