@wll8/better-mock
Version:
Forked from Mockjs. Generate random data & Intercept ajax request. Support miniprogram.
24 lines (23 loc) • 778 B
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="../../node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="../../node_modules/jquery/dist/jquery.js"></script>
<script src="../../node_modules/mocha/mocha.js"></script>
<script src="../../dist/mock.browser.js"></script>
<script src="../../node_modules/chai/chai.js"></script>
<script src="../../node_modules/axios/dist/axios.js"></script>
<script>mocha.setup('bdd');</script>
<script src="./test.xhr.js"></script>
<script>
const expect = chai.expect
mocha.run();
</script>
</body>
</html>