mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-02-02 02:46:46 +00:00
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
15 lines
228 B
JavaScript
15 lines
228 B
JavaScript
/*\
|
|
title: nested/program.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
Nested test
|
|
|
|
\*/
|
|
|
|
|
|
var test = require('test');
|
|
test.assert(require('a/b/c/d').foo() == 1, 'nested module identifier');
|
|
test.print('DONE', 'info');
|
|
|