TiddlyWiki5/editions/testcommonjs/tiddlers/absolute/program.js

17 wiersze
305 B
JavaScript

/*\
title: absolute/program.js
type: application/javascript
module-type: library
Absolute require test
\*/
var test = require('test');
var a = require('./submodule/a');
var b = require('./b');
test.assert(a.foo().foo === b.foo, 'require works with absolute identifiers');
test.print('DONE', 'info');