mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 18:14:44 +00:00
Make require() compliant with CommonJS Modules/1.1
This commit is contained in:
13
editions/testcommonjs/tiddlers/transitive/program.js
Normal file
13
editions/testcommonjs/tiddlers/transitive/program.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/*\
|
||||
title: transitive/program.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
||||
Transitive test
|
||||
|
||||
\*/
|
||||
|
||||
var test = require('test');
|
||||
test.assert(require('./a').foo() == 1, 'transitive');
|
||||
test.print('DONE', 'info');
|
||||
|
||||
Reference in New Issue
Block a user