Skip to content

Commit

Permalink
test: 优化测试显示标题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexb committed Mar 18, 2018
1 parent 7626060 commit 31435bd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@ describe('cases', () => {
const html = fs.readFileSync(path.resolve(__dirname, uri)).toString();

return {
uri,
path: uri,
html,
title: (html.match(/<title>(.+?)<\/title>/) || ['', uri])[1]
.replace(/&lt;/g, '<')
.replace(/&gt;/, '>')
.replace(/&quot;/g, '"')
title: uri
};
});

Expand Down

0 comments on commit 31435bd

Please sign in to comment.