mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
23 lines
357 B
JavaScript
23 lines
357 B
JavaScript
|
/*\
|
||
|
title: cyclic/program.js
|
||
|
type: application/javascript
|
||
|
module-type: library
|
||
|
|
||
|
Cycle require test
|
||
|
|
||
|
\*/
|
||
|
|
||
|
|
||
|
|
||
|
var test = require('test');
|
||
|
var a = require('./a');
|
||
|
var b = require('./b');
|
||
|
|
||
|
test.assert(a.a, 'a exists');
|
||
|
test.assert(b.b, 'b exists')
|
||
|
test.assert(a.a().b === b.b, 'a gets b');
|
||
|
test.assert(b.b().a === a.a, 'b gets a');
|
||
|
|
||
|
test.print('DONE', 'info');
|
||
|
|