mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
17 lines
305 B
JavaScript
17 lines
305 B
JavaScript
|
/*\
|
||
|
title: absolute/program.js
|
||
|
type: application/javascript
|
||
|
module-type: library
|
||
|
|
||
|
Absolute require test
|
||
|
|
||
|
\*/
|
||
|
|
||
|
|
||
|
var test = require('test');
|
||
|
var a = require('./submodule/a');
|
||
|
var b = require('./b');
|
||
|
test.assert(a.foo().foo === b.foo, 'require works with absolute identifiers');
|
||
|
test.print('DONE', 'info');
|
||
|
|