michaelkourlas/node-js2xmlparser — pull request #18 by manumaticx (2014-07-31 15:07:46+00:00)
Title: Fixed test

Test failed when running in other time zone

```
85 passing (38ms)
3 failing

1) js2xmlparser data should correctly parse example 2:

AssertionError: expected 'JohnSmithWed Aug 26 1964 00:00:00 GMT+0200 (CEST)

3212 22nd StChicagoIllinois10000

123-555-4567456-555-7890john@smith.comJohn's profile is not complete.' to be 'JohnSmithWed Aug 26 1964 00:00:00 GMT-0400 (Eastern Daylight Time)

3212 22nd StChicagoIllinois10000

123-555-4567456-555-7890john@smith.comJohn's profile is not complete.'
+ expected - actual

+"JohnSmithWed Aug 26 1964 00:00:00 GMT-0400 (Eastern Daylight Time)

3212 22nd StChicagoIllinois10000

123-555-4567456-555-7890john@smith.comJohn's profile is not complete."
-"JohnSmithWed Aug 26 1964 00:00:00 GMT+0200 (CEST)

3212 22nd StChicagoIllinois10000

123-555-4567456-555-7890john@smith.comJohn's profile is not complete."

at Assertion.prop.(anonymous function) (/Users/manu/git/node-js2xmlparser/node_modules/should/lib/should.js:61:14)
at Context. (/Users/manu/git/node-js2xmlparser/test/test.js:1157:28)
at callFn (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:223:21)
at Test.Runnable.run (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:216:7)
at Runner.runTest (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:373:10)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:451:12
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:298:14)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:308:7
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:246:23)
at Object._onImmediate (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:275:5)

2) js2xmlparser data should correctly parse example 2 with pretty printing:

AssertionError: expected '\n\tJohn\n\tSmith\n\tWed Aug 26 1964 00:00:00 GMT+0200 (CEST)\n\t

\n\t\t3212 22nd St\n\t\tChicago\n\t\tIllinois\n\t\t10000\n\t

\n\t123-555-4567\n\t456-555-7890\n\tjohn@smith.com\n\tJohn's profile is not complete.\n' to be '\n\tJohn\n\tSmith\n\tWed Aug 26 1964 00:00:00 GMT-0400 (Eastern Daylight Time)\n\t

\n\t\t3212 22nd St\n\t\tChicago\n\t\tIllinois\n\t\t10000\n\t

\n\t123-555-4567\n\t456-555-7890\n\tjohn@smith.com\n\tJohn's profile is not complete.\n'
+ expected - actual

+"\n\tJohn\n\tSmith\n\tWed Aug 26 1964 00:00:00 GMT-0400 (Eastern Daylight Time)\n\t

\n\t\t3212 22nd St\n\t\tChicago\n\t\tIllinois\n\t\t10000\n\t

\n\t123-555-4567\n\t456-555-7890\n\tjohn@smith.com\n\tJohn's profile is not complete.\n"
-"\n\tJohn\n\tSmith\n\tWed Aug 26 1964 00:00:00 GMT+0200 (CEST)\n\t

\n\t\t3212 22nd St\n\t\tChicago\n\t\tIllinois\n\t\t10000\n\t

\n\t123-555-4567\n\t456-555-7890\n\tjohn@smith.com\n\tJohn's profile is not complete.\n"

at Assertion.prop.(anonymous function) (/Users/manu/git/node-js2xmlparser/node_modules/should/lib/should.js:61:14)
at Context. (/Users/manu/git/node-js2xmlparser/test/test.js:1205:28)
at callFn (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:223:21)
at Test.Runnable.run (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:216:7)
at Runner.runTest (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:373:10)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:451:12
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:298:14)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:308:7
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:246:23)
at Object._onImmediate (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:275:5)

3) js2xmlparser data should correctly parse example 4:

AssertionError: expected '1964-08-25T22:00:00.000Z' to be '1964-08-26T04:00:00.000Z'
+ expected - actual

+"1964-08-26T04:00:00.000Z"
-"1964-08-25T22:00:00.000Z"

at Assertion.prop.(anonymous function) (/Users/manu/git/node-js2xmlparser/node_modules/should/lib/should.js:61:14)
at Context. (/Users/manu/git/node-js2xmlparser/test/test.js:1244:28)
at callFn (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:223:21)
at Test.Runnable.run (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runnable.js:216:7)
at Runner.runTest (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:373:10)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:451:12
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:298:14)
at /Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:308:7
at next (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:246:23)
at Object._onImmediate (/Users/manu/git/node-js2xmlparser/node_modules/mocha/lib/runner.js:275:5)

```