Skip to content

Commit cf97d02

Browse files
author
Lawrence Lau
committed
make the server side test meaningful
1 parent 6ba6a63 commit cf97d02

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.DS_Store
22
coverage/
3-
node_modules/
3+
node_modules/
4+
5+
index.html
6+
bundle.js

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Asynchronous image loader",
55
"main": "index.js",
66
"scripts": {
7-
"test": "node ./tests/image-loadr.js"
7+
"test": "node ./tests/node/image-loadr.js"
88
},
99
"repository": {
1010
"type": "git",
@@ -26,10 +26,11 @@
2626
},
2727
"devDependencies": {
2828
"function-bind": "~0.1.0",
29-
"tape": "~2.10.2"
29+
"tape": "~2.10.2",
30+
"htmlimage": "~1.0.2"
3031
},
3132
"testling": {
32-
"files": "tests/*.js",
33+
"files": "tests/image-loadr.js",
3334
"browsers": [
3435
"android-browser/4.2..latest",
3536
"chrome/22..latest",

tests/node/image-loadr.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
global.Image = require('htmlimage').Image;
4+
5+
require('../image-loadr');

0 commit comments

Comments
 (0)