Skip to content

Commit

Permalink
changes in test workflow
Browse files Browse the repository at this point in the history
1. [test] Move `ava` to `mocha+chai` to test in real browser.
(sindresorhus#105) (sindresorhus#140) (sindresorhus#142)
2. [test] seprate non special-protocol-schemes(sindresorhus#147)
3. [doc] Update readme
  • Loading branch information
loynoir committed Aug 9, 2021
1 parent 2fe15b0 commit 6594802
Show file tree
Hide file tree
Showing 6 changed files with 788 additions and 242 deletions.
2 changes: 2 additions & 0 deletions browser-test/global-chai.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* global chai */
export const {expect} = chai;
21 changes: 21 additions & 0 deletions browser-test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Mocha</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/mocha.min.css" />
</head>
<body>
<div id="mocha"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/mocha.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/chai.min.js"></script>
<script>
mocha.setup('bdd');
</script>
<script src="./tests.spec.js"></script>
<script>
mocha.run();
</script>
</body>
</html>
Loading

0 comments on commit 6594802

Please sign in to comment.