Skip to content

Commit bb972b0

Browse files
committed
- add test.js and document it
- improve documentation for dependency on env-js
1 parent 7196e04 commit bb972b0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.markdown

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
To give it a test, set up your environment, including the directory containing
2-
the built dom.js from env-js:
1+
To give it a test, set up your environment, including the directory containing the built dom.js from env-js:
32

4-
export NODE_PATH=lib:../env-js/dist
3+
export NODE_PATH=lib:/path/to/env-js/dist:/path/to/nodeunit/lib
4+
5+
Or copy the contents of the env-js dist directory and the nodeunit lib directory to ~/.node_libraries
56

67
and give it a run:
78

8-
node tests/test_html5parser.js
9+
node test.js
910

1011
That's it for now, integration with a modularized env.js coming.
1112

test.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require.paths.push('lib')
2+
require.paths.push('.')
3+
4+
var testrunner = require('testrunner');
5+
testrunner.run(['tests'])
6+
7+

0 commit comments

Comments
 (0)