kopia lustrzana https://github.com/miklobit/TiddlyWiki5
17 wiersze
301 B
JavaScript
17 wiersze
301 B
JavaScript
/*\
|
|
title: relative/program.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
Relative test
|
|
|
|
\*/
|
|
|
|
|
|
var test = require('test');
|
|
var a = require('submodule/a');
|
|
var b = require('submodule/b');
|
|
test.assert(a.foo == b.foo, 'a and b share foo through a relative require');
|
|
test.print('DONE', 'info');
|
|
|