Skip to content

Commit 87fcd59

Browse files
committed
chore: 修正 mock 文档引入方式,更新版本
1 parent c801353 commit 87fcd59

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
},
1616
"devDependencies": {
1717
"gulp": "^3.9.0",
18-
"gulp-connect": "*",
18+
"gulp-connect": "^5.7.0",
1919
"gulp-coveralls": "^0.1.4",
20-
"gulp-istanbul": "^0.10.3",
21-
"gulp-jshint": "^2.0.0",
20+
"gulp-istanbul": "^0.10.4",
21+
"gulp-jshint": "^2.1.0",
2222
"gulp-mocha": "^2.2.0",
2323
"gulp-mocha-phantomjs": "^0.10.1",
2424
"jshint": "^2.8.0",

test/test.mock.html

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Test: Mock</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<link href="./bower_components/mocha/mocha.css" rel="stylesheet">
7+
<link href="https://unpkg.com/mocha@3.x/mocha.css" rel="stylesheet">
88
<style type="text/css">
99
li.test h2 {
1010
font-family: monospace;
@@ -16,17 +16,18 @@
1616
<body>
1717
<div id="mocha"></div>
1818
<!-- Include local Mocha. -->
19-
<script src="./bower_components/mocha/mocha.js"></script>
20-
<script src="./bower_components/chai/chai.js"></script>
19+
<script src="https://unpkg.com/mocha@3.x/mocha.js"></script>
20+
<script src="https://unpkg.com/chai@4.2.0/chai.js"></script>
2121
<script>mocha.setup('bdd')</script>
2222
<!-- Include RequireJS -->
23-
<script src="./bower_components/requirejs/require.js"></script>
23+
<script src="https://unpkg.com/requirejs@2.x/require.js"></script>
2424
<script type="text/javascript">
25+
window.require = window.requirejs;
2526
require.config({
2627
paths: {
2728
'mock': '../dist/mock',
28-
jquery: 'bower_components/jquery/dist/jquery',
29-
underscore: 'bower_components/underscore/underscore'
29+
jquery: 'https://unpkg.com/jquery@2.2.4/dist/jquery',
30+
underscore: 'https://unpkg.com/underscore@1.9.1/underscore'
3031
}
3132
})
3233
</script>

0 commit comments

Comments
 (0)