This website requires JavaScript.
Explore
Help
Register
Sign In
zaphar
/
dynamicbible
Watch
1
Star
0
Fork
0
You've already forked dynamicbible
mirror of
https://gitlab.com/walljm/dynamicbible.git
synced
2025-07-27 01:19:52 -04:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
dynamicbible
/
test
/
all.js
4 lines
100 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Split out the unittests into separate files. We use nodes require so we have to follow nodes module conventions for test suites. * As a result we need to inject the requirejs loader as well as the exports object. * Also we need to move the requirejs setup logic into it's own module for reuse. * The test modules add tests to the exports object for our test runner.
2013-11-16 15:26:49 -05:00
require
(
'./ref-tests.js'
)
.
init
(
exports
)
;
Setup unit testing infrastructure using npm * Add package.json to tell npm what dependencies we need. * Use npm's test package for the assertions * Add a test/all.js as our test suite entrypoint. * Port biblerefparsing tests over to the new unit test framework.
2013-11-16 13:27:56 -05:00
if
(
module
==
require
.
main
)
require
(
'test'
)
.
run
(
exports
)
;
Reference in New Issue
Copy Permalink