blob: b36aeeb948af58d541d29e7cf2bc3e7817bf12a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
var chai = require('chai'),
fs = require('fs');
chai.Assertion.includeStack = true;
assert = chai.assert;
globalNS = {
require: require
};
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/webcals/' + lib);
};
|