Skip to content

Commit

Permalink
test: fix test case error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 3, 2023
1 parent 9ab6287 commit 445e652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ it('config test case', async () => {
expect(run({ config: 'test/demo/config.json', output: 'test/demo/index.html', author: 'kenny', markdown: 'Hello World! [](README.md)' })).toBeUndefined();
const htmlStr = await FS.readFile('test/demo/index.html');
expect(htmlStr.toString().indexOf('Hello World!<a href="index.html">') > 0).toBeTruthy();
expect(htmlStr.toString().indexOf('https://github.com/jaywcjlove/markdown-to-html-cli.git') > 0).toBeFalsy();
expect(htmlStr.toString().indexOf('https://github.com/jaywcjlove/markdown-to-html-cli.git') > 0).toBeTruthy();
expect(htmlStr.toString().indexOf('data:image/svg+xml') > 0).toBeTruthy();
expect(htmlStr.toString().indexOf('html,cli') > 0).toBeTruthy();
expect(htmlStr.toString().indexOf('kenny') > 0).toBeTruthy();
Expand Down

0 comments on commit 445e652

Please sign in to comment.