Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'npm run test' failed @ windows #68

Closed
3 tasks done
anb0s opened this issue May 10, 2020 · 1 comment
Closed
3 tasks done

'npm run test' failed @ windows #68

anb0s opened this issue May 10, 2020 · 1 comment

Comments

@anb0s
Copy link
Contributor

anb0s commented May 10, 2020

I've tried the Contributing description @ Windows 10 with fresh clone and versions:

  • npm@6.14.4
  • node@v12.16.3

Executed:

$ npm run test

> asciidoctor-kroki@0.8.2 test C:\Users\kenobi\dev\asciidoctor-kroki
> npm run test:node && npm run test:browser

> asciidoctor-kroki@0.8.2 test:node C:\Users\kenobi\dev\asciidoctor-kroki
> mocha test/*.js

  preprocessVegaLite
    √ should throw an error for invalid JSON
    √ should return original diagramText for valid JSON but without "data.url"
    √ should throw an error for unexisting local file referenced with relative path
    √ should throw an error for unexisting local file referenced with "file://"
Skipping preprocessing of Vega-Lite view specification, because reading the referenced remote file 'https://raw.githubusercontent.com/Mogztter/asciidoctor-kroki/master/unexisting.csv' caused an error:
Error: No such file: https://raw.githubusercontent.com/Mogztter/asciidoctor-kroki/master/unexisting.csv
    √ should warn and return original diagramText for unexisting remote file referenced with "data.url", because it can perhaps be found by kroki server (354ms)
    1) should return diagramText with inlined local file referenced with "data.url"
    √ should return diagramText with inlined remote file referenced with "data.url" (355ms)

  Registration
    √ should register the extension

  Conversion
    When extension is registered
      √ should convert a diagram to an image (45ms)
      2) should convert a diagram with an absolute path to an image
      3) should convert a diagram with a relative path to an image
      √ should download and save an image to a local folder (353ms)
      √ should apply substitutions in diagram block
      4) should apply attributes substitution in target
      √ should not download twice the same image (322ms)
      √ should create a literal block when format is txt (285ms)
      √ should read diagram text
      √ should embed an SVG image with built-in allow-uri-read and data-uri (available in Asciidoctor.js 2+) (1034ms)
      √ should inline an SVG image with built-in allow-uri-read (available in Asciidoctor.js 2+) (369ms)
      √ should inline an SVG image with kroki-fetch-diagram (952ms)
      √ should include an interactive SVG image with built-in allow-uri-read and data-uri (available in Asciidoctor.js 2+) (1049ms)
      5) should include an interactive SVG image with kroki-fetch-diagram
      √ should convert a PacketDiag diagram to an image
      √ should convert a RackDiag diagram to an image
      √ should convert a Vega diagram to an image
      √ should convert a Vega-Lite diagram to an image
      6) should inline a referenced data file for a Vega-Lite diagram and convert to an image
      √ should convert a WaveDrom diagram to an image
      √ should convert a BPMN diagram to an image
      √ should convert a Bytefield diagram to an image
@ggrossetie
Copy link
Member

Fixed in 04fc175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants