agave icon indicating copy to clipboard operation
agave copied to clipboard

npm test doesn't work

Open azachar opened this issue 8 years ago • 2 comments

Hello, I like your idea and want to fork it in order to provide an api that allows to add custom policies objects instead of just names, but running npm test is on your current code base is not working..

I am getting this results: (Also, I neeedd to use this form var agave = require('agave')('av'); in your test)


"fontSrc": [
           "data:"
           "fonts.googleapis.com"
           "fonts.gstatic.com"
      -    "themes.googleusercontent.com"
           "use.typekit.net"
         ]

         "frameSrc": [
           "js.stripe.com"
         "reportUri": "/csp-violation"
         "scriptSrc": [
           "'self'"
           "'unsafe-eval'"
      -    "analytics.twitter.com"
      -    "api.stripe.com"
           "cdn.mxpnl.com"
      -    "cdn.syndication.twimg.com"
           "js.stripe.com"
           "platform.twitter.com"
      -    "static.ads-twitter.com"
           "syndication.twitter.com"
           "use.typekit.net"
         ]
         "styleSrc": [


Please, could you please fix your code so I can provide my patches?

Thanks, Andrej

azachar avatar May 13 '17 09:05 azachar

I sent a PR against this issue.

rousan avatar Jul 13 '18 07:07 rousan

The test output you've provided doesn't look like anything to with agave: image

Did you mean to file a bug with https://github.com/certsimple/csp-by-api instead?

Also all the tests pass there too (see the CI output in the README)

mikemaccana avatar Jul 13 '18 11:07 mikemaccana