Skip to content

Commit

Permalink
fix: expected svg file and source plan for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Nov 28, 2023
1 parent d00ac21 commit 24af4ac
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 60 deletions.
59 changes: 0 additions & 59 deletions plan.svg

This file was deleted.

35 changes: 35 additions & 0 deletions test/expected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/generate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs');
test('CLI generates correct SVG file', () => {

try {
const output = execSync(`node --experimental-specifier-resolution=node dist/index.js -p ../plan.json -o .`);
const output = execSync(`node --experimental-specifier-resolution=node dist/index.js -p test/plan.json -o .`);

expect(output.toString()).toContain('SVG file saved successfully');

Expand Down
Loading

0 comments on commit 24af4ac

Please sign in to comment.