Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluet committed Apr 30, 2017
1 parent c4fc795 commit 3e39a57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use strict";

var appRoot = require('app-root-path');
const assert = require('assert');

var objectFilter = require(appRoot + "/index.js");

var test_template = {
Expand Down Expand Up @@ -43,11 +45,9 @@ var exam_data = {
};


var result = 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');
}
var result_data = objectFilter(test_template, test_data)
assert.deepEqual(result_data, exam_data);

console.log('Test OK');

return 1;

0 comments on commit 3e39a57

Please # to comment.