From b12059e8f7780878ade9b8e856bebfaba737c477 Mon Sep 17 00:00:00 2001 From: Sai1919 Date: Fri, 11 Nov 2016 12:17:38 +0530 Subject: [PATCH] update --- parser.js | 10 +++++----- test/test.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parser.js b/parser.js index 4fef7b7..694e5d1 100644 --- a/parser.js +++ b/parser.js @@ -148,7 +148,7 @@ XmlParser.prototype.parse = function (chunk) { var index var xpath var pathTokens - console.log('***************inside emitInterestedNode name=', name) + // console.log('***************inside emitInterestedNode name=', name) xpath = state.currentPath.substring(1) pathTokens = xpath.split('/') pathTokens.push(name) @@ -160,7 +160,7 @@ XmlParser.prototype.parse = function (chunk) { } if (Array.isArray(tempObj)) tempObj = tempObj[tempObj.length - 1] scope.emit(name, tempObj) - console.log('*************pushing tempObj on name=', tempObj, name) + // console.log('*************pushing tempObj on name=', tempObj, name) scope.push(tempObj) } @@ -244,7 +244,7 @@ XmlParser.prototype.parse = function (chunk) { index = temp.indexOf('/') if (index !== -1) temp = temp.substring(0, index) if (temp !== name) { - console.log('****************ending the stream as root doesnt match') + // console.log('****************ending the stream as root doesnt match') scope.end() } } @@ -252,9 +252,9 @@ XmlParser.prototype.parse = function (chunk) { } XmlParser.prototype._flush = function (callback) { - console.log('**************inside flush') + // console.log('**************inside flush') this.parse('', true) - console.log('**************inside flush returned from parse calling callback') + // console.log('**************inside flush returned from parse calling callback') callback() } diff --git a/test/test.js b/test/test.js index 165ef54..0c206b3 100644 --- a/test/test.js +++ b/test/test.js @@ -1032,7 +1032,7 @@ describe('Tests', function () { }) }) - describe.skip('performance testing', function () { + describe('performance testing', function () { it('should properly parse more than 500 MB of file.', function (done) { var parser = new ParserFactory({resourcePath: '/items/item'}) // var wsStream = fs.createWriteStream('./test/TestFiles/MB_and_GB_size_files/MBFile.xml')