sintaxi / jjade

just jade (with updates)
MIT License
0 stars 0 forks source link

test failed #1

Open bluet opened 5 years ago

bluet commented 5 years ago

I came from harp -> terraform -> jjade and trying to resolve security warnings from npm audit in projects with harp as dependency.

I did a clean clone and did npm i but got errors from npm run test: 1) filters coffeescript 2) include filter 3) should instantiate objects with lineno and filename properties

Some further info:

  261 passing (13s)
  3 failing

  1) filters coffeescript:

      AssertionError: expected '"<scripttype=\\"text/javascript\\">(function(){varregexp;regexp=/\\\\n/;}).call(this);(function(){}).call(this);</script>"' to be '"<scripttype=\\"text/javascript\\">(function(){varregexp;regexp=/\\\\n/;}).call(this);(function(){varn;n={square:function(n){returnn*n}}}).call(this);</script>"'
      + expected - actual

      -"<scripttype=\"text/javascript\">(function(){varregexp;regexp=/\\n/;}).call(this);(function(){}).call(this);</script>"
      +"<scripttype=\"text/javascript\">(function(){varregexp;regexp=/\\n/;}).call(this);(function(){varn;n={square:function(n){returnn*n}}}).call(this);</script>"

      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/run.js:68:42)

  2) include filter:

      AssertionError: expected '"<html><body><p>Just<em>some</em>markdown<strong>tests</strong>.</p><p>Withnewline.</p><script>(function(){}).call(this);</script><script>(function(){varmath;math={square:function(value){returnvalue*value;}};}).call(this);</script></body></html>"' to be '"<html><body><p>Just<em>some</em>markdown<strong>tests</strong>.</p><p>Withnewline.</p><script>(function(){varn;n={square:function(n){returnn*n}}}).call(this);</script><script>(function(){varmath;math={square:function(value){returnvalue*value;}};}).call(this);</script></body></html>"'
      + expected - actual

      -"<html><body><p>Just<em>some</em>markdown<strong>tests</strong>.</p><p>Withnewline.</p><script>(function(){}).call(this);</script><script>(function(){varmath;math={square:function(value){returnvalue*value;}};}).call(this);</script></body></html>"
      +"<html><body><p>Just<em>some</em>markdown<strong>tests</strong>.</p><p>Withnewline.</p><script>(function(){varn;n={square:function(n){returnn*n}}}).call(this);</script><script>(function(){varmath;math={square:function(value){returnvalue*value;}};}).call(this);</script></body></html>"

      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/run.js:68:42)

  3) DebugItem
       should instantiate objects with lineno and filename properties:

      AssertionError: expected DebugItem { lineno: 42, filename: '/path/to/file' } to equal Object { lineno: 42, filename: '/path/to/file' } (because A and B have different prototypes)
      + expected - actual

      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/unit.js:46:15)
bluet commented 5 years ago

@sintaxi can you take a look? Thanks!

bluet commented 5 years ago

There's a security warning from npm audit and I wanna help on solving the problem, but I'm stuck on running test lol

bluet commented 4 years ago

@sintaxi any updates?