mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-20 14:45:59 +00:00
![natecain](/assets/img/avatar_default.png)
This includes potentially breaking changes. Specifically, before this patch tiddlywiki would default to relative module identifiers Now, tiddlywiki will only search relative paths if explicitly specified Additionally, some "defaulted export contexts" were removed (some modules may make assumptions about context) Some unit tests were modified slightly from their originals Tiddlywiki doesn't have a notion of a "main" program's path Some require calls were explicitly made relative None of these changes should affect the requirement under test in each case
16 lines
238 B
JavaScript
16 lines
238 B
JavaScript
/*\
|
|
title: monkeys/program.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
Monkeys test
|
|
|
|
\*/
|
|
|
|
|
|
var a = require('./a');
|
|
var test = require('test');
|
|
test.assert(exports.monkey == 10, 'monkeys permitted');
|
|
test.print('DONE', 'info');
|
|
|