| 1 |
var main = require('../../index'); |
| 2 |
|
| 3 |
|
| 4 |
module.exports = { |
| 5 |
"xface": function (test) { |
| 6 |
[ 'Instrumenter', 'Store', 'Collector', 'Report', 'Reporter', '_yuiLoadHook'].forEach(function (key) { |
| 7 |
test.ok(main[key] && typeof main[key] === 'function', key + ' was not exported as a function!'); |
| 8 |
}); |
| 9 |
[ 'hook', 'utils', 'config' ].forEach(function (key) { |
| 10 |
test.ok(main[key] && typeof main[key] === 'object', key + ' was not exported as an object!'); |
| 11 |
}); |
| 12 |
[ 'assetsDir'].forEach(function (key) { |
| 13 |
test.ok(main[key] && typeof main[key] === 'string', key + ' was not exported as a string!'); |
| 14 |
}); |
| 15 |
test.done(); |
| 16 |
} |
| 17 |
}; |