提交 2b264179 编写于 作者: J Jasper De Moor

fix last test

上级 ddc570e6
......@@ -71,8 +71,7 @@ describe('html', function() {
'utf8',
);
for (let file of files) {
let ext = file.match(/\.([0-9a-z]+)(?:[?#]|$)/i)[0];
if (file !== 'index.html' && ext !== '.map') {
if (file !== 'index.html' && path.extname(file) !== '.map') {
assert(html.includes(file));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册