| 1 |
"use strict"; |
| 2 |
|
| 3 |
var resolve = require("path").resolve |
| 4 |
, pg = resolve(__dirname, "../__playground"); |
| 5 |
|
| 6 |
module.exports = function (t, a) { |
| 7 |
var o = t(pg + "/lib/evaluation-error.js", pg + "/not/existing/path", global); |
| 8 |
a.ok(o.testee instanceof Error, "Evaluation error"); |
| 9 |
a(o.test, undefined, "Not found"); |
| 10 |
|
| 11 |
o = t(resolve(pg, "lib/index-test/index.js"), resolve(pg, "not/existing/path"), global); |
| 12 |
a(typeof o.test, "function", "Automatic index test"); |
| 13 |
|
| 14 |
o = t(pg + "/lib/module.js", pg + "/test/generics-test/test.js", global); |
| 15 |
a(typeof o.test.__generic, "undefined", "Generics test"); |
| 16 |
}; |