Skip to content

Commit

Permalink
Reproduction case for #102: delimiters are sometimes confused with JS…
Browse files Browse the repository at this point in the history
… syntax
  • Loading branch information
jjhbw committed May 17, 2020
1 parent 00ae3d4 commit 0925817
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Binary file not shown.
21 changes: 21 additions & 0 deletions src/__tests__/indexNode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,27 @@ Morbi dignissim consequat ex, non finibus est faucibus sodales. Integer sed just
// Render to an object and compare with snapshot.
expect(await createReport(opts, 'JS')).toMatchSnapshot();
});

it('102 custom delimiters that may be confused with JS syntax', async () => {
// Issue #102
expect(
await createReport(
{
noSandbox,
template: await fs.promises.readFile(
path.join(
__dirname,
'fixtures',
'customDelimitersJSsyntax.docx'
)
),
data: {},
cmdDelimiter: ['{', '}'],
},
'JS'
)
).toMatchSnapshot();
});
});
});
});

0 comments on commit 0925817

Please sign in to comment.