diff options
author | James Lal <james@lightsofapollo.com> | 2012-06-18 20:51:13 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-06-18 20:51:13 -0700 |
commit | a6c747412c0960331e4055eee97d8328ff88d584 (patch) | |
tree | c4a82365e592a2d1cfa46cd0f5f595dde6626ff8 /test/helper.js | |
download | jsCalDAV-a6c747412c0960331e4055eee97d8328ff88d584.tar.gz |
Initial hack
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js new file mode 100644 index 0000000..9f40311 --- /dev/null +++ b/test/helper.js @@ -0,0 +1,16 @@ +var chai = require('chai'), + fs = require('fs'); + +chai.Assertion.includeStack = true; +assert = chai.assert; + +loadSample = function(file, cb) { + var root = __dirname + '/../samples/'; + fs.readFile(root + file, 'utf8', function(err, contents) { + cb(err, contents); + }); +}; + +requireLib = function(lib) { + return require(__dirname + '/../lib/caldav/' + lib); +}; |