mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-28 04:19:56 +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');
|
|
|