Skip to content

Commit dee554b

Browse files
committed
fixed flaky test with local url
1 parent f343780 commit dee554b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

tests/export.test.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const fs = require('fs');
2+
const path = require('path');
23
const {
34
buildContent,
45
buildFileName,
@@ -142,7 +143,16 @@ describe('export helpers', () => {
142143
test('imported domain canvas notes start below titles and journey steps', () => {
143144
const imported = JSON.parse(
144145
fs.readFileSync(
145-
'C:/Users/MarjukkaNiinioja/Downloads/specs/canvases/api-product-strategy/domainCanvas.example.json',
146+
path.join(
147+
process.cwd(),
148+
'node_modules',
149+
'apiops-cycles-method-data',
150+
'src',
151+
'data',
152+
'canvas',
153+
'import-export-templates',
154+
'Canvas_domainCanvas.json',
155+
),
146156
'utf8',
147157
),
148158
);

0 commit comments

Comments
 (0)