From c4fc7952510f89ea7842456d26e4a1091d309db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BlueT=20-=20Matthew=20Lien=20-=20=E7=B7=B4=E5=96=86?= =?UTF-8?q?=E6=98=8E?= Date: Sat, 29 Apr 2017 01:13:08 +0800 Subject: [PATCH] fix test --- package.json | 2 +- t/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7f740fe..7d29dd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obj-filter", - "version": "1.0.0", + "version": "1.0.1", "description": "JavaScript Object content Filter. Support wildcard, nested, and filter function in template.", "main": "index.js", "scripts": { diff --git a/t/test.js b/t/test.js index f486c88..9da0514 100644 --- a/t/test.js +++ b/t/test.js @@ -44,7 +44,7 @@ var exam_data = { var result = JSON.stringify( objectFilter(test_template, test_data), null, 4 ); -var exam = JSON.stringify( objectFilter(test_template, test_data), null, 4 ); +var exam = JSON.stringify( exam_data, null, 4 ); //~ console.log( result ); if (result === exam) { console.log('Test OK');