Debian Codegraph @

tests/plugins/relative/relative-tests.js

raw symbols SCIP
1 doh.register(
2 "pluginsRelative",
3 [
4 function pluginsRelative(t){
5 var branch = require('./sub/branch'),
6 fs = require('fs'),
7 path = require('path'),
8 baseName = path.dirname(module.filename),
9 twoText = fs.readFileSync(path.normalize(path.join(baseName, './sub/templates/two.txt')), 'utf8');
10
11 t.is('branch', branch.name);
12 t.is('leaf', branch.leaf.name);
13 t.is(fs.readFileSync(path.normalize(path.join(baseName, './sub/templates/one.txt')), 'utf8'), branch.one);
14 t.is(twoText, branch.two);
15 t.is(twoText, branch.leaf.two);
16 }
17 ]
18 );
19
20 doh.run();