From 285b4d0a5aadf5a2e85db73fbef5b9a7bf9fb3a3 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Wed, 19 May 2021 13:38:05 +0300 Subject: [PATCH] add a test for encoding null property --- test/properties.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/properties.js b/test/properties.js index 84bc7f8..ef79ff4 100644 --- a/test/properties.js +++ b/test/properties.js @@ -22,7 +22,8 @@ test('property encoding', function (t) { a: 'one', b: 1, c: { hello: 'world' }, - d: [1, 2, 3] + d: [1, 2, 3], + e: null }, geometry: { type: 'Point', @@ -54,6 +55,7 @@ test('property encoding', function (t) { var second = layer.feature(1).properties t.same(first.c, '{"hello":"world"}') t.same(first.d, '[1,2,3]') + t.equals(first.e, null) t.same(second.c, '{"goodbye":"planet"}') t.same(second.d, '{"hello":"world"}') t.end()