Skip to content

Commit

Permalink
fixed: happy travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
zswang committed Jul 21, 2016
1 parent cfcc723 commit c275332
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ assert.equal(a === b, false);
```
```html
<div class="red"></div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
```
```js
$(function () {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "examplejs",
"version": "0.1.16",
"version": "0.1.18",
"description": "A tool for converting example code into test cases",
"homepage": "https://github.com/zswang/jtests",
"authors": {
Expand Down
2 changes: 1 addition & 1 deletion examplejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* A tool for converting example code into test cases
* @author
* zswang (http://weibo.com/zswang)
* @version 0.1.16
* @version 0.1.18
* @date 2016-07-21
*/
/*<function name="format">*/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "examplejs",
"version": "0.1.16",
"version": "0.1.18",
"description": "A tool for converting example code into test cases",
"main": "examplejs.js",
"keywords": [
Expand All @@ -11,7 +11,7 @@
"scripts": {
"_update_version": "node version.js",
"_dist": "gulp",
"example": "node cli README.md -o test/readme.js -h head.js -g \"$,document\" && node cli src/examplejs.js -o test/examplejs.js -h head.js",
"example": "node cli README.md -o test/readme.js -h head.js -g \"$,document\" -t 30000 && node cli src/examplejs.js -o test/examplejs.js -h head.js",
"test": "istanbul cover --hook-run-in-context node_modules/mocha/bin/_mocha -- -R spec",
"mocha": "mocha",
"dist": "npm run _update_version && npm run example && npm run _dist && npm run test",
Expand Down
4 changes: 2 additions & 2 deletions test/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("README.md", function () {
examplejs_printLines.push(util.format.apply(util, arguments));
}
var jsdom = require('jsdom');

this.timeout(30000);

it("xxyy", function () {
examplejs_printLines = [];
Expand Down Expand Up @@ -95,7 +95,7 @@ describe("README.md", function () {
});

it("jsdom@jQuery", function (done) {
jsdom.env("<style> .red {\n background-color: red;\n }</style>\n <div class=\"red\"></div>\n <script src=\"http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js\"></script>", {
jsdom.env("<style> .red {\n background-color: red;\n }</style>\n <div class=\"red\"></div>\n <script src=\"https://code.jquery.com/jquery-3.1.0.min.js\"></script>", {
features: {
FetchExternalResources : ["script", "link"],
ProcessExternalResources: ["script"]
Expand Down

0 comments on commit c275332

Please sign in to comment.