2010-12-03 09:03:18 +08:00
|
|
|
var d = require('./d');
|
2009-11-01 02:02:30 +08:00
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
var assert = require('assert');
|
2009-11-01 02:02:30 +08:00
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
var package = require('./package');
|
2009-11-01 02:02:30 +08:00
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
assert.equal('world', package.hello);
|
2009-06-08 21:30:10 +08:00
|
|
|
|
2010-12-05 07:20:34 +08:00
|
|
|
console.error('load fixtures/b/c.js');
|
2009-09-28 18:06:30 +08:00
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
var string = 'C';
|
2009-06-08 22:17:33 +08:00
|
|
|
|
2010-02-11 19:09:46 +08:00
|
|
|
exports.SomeClass = function() {
|
2010-06-30 14:12:46 +08:00
|
|
|
|
2010-02-11 19:09:46 +08:00
|
|
|
};
|
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
exports.C = function() {
|
2009-06-08 22:17:33 +08:00
|
|
|
return string;
|
2009-06-08 21:30:10 +08:00
|
|
|
};
|
|
|
|
|
2010-12-03 09:03:18 +08:00
|
|
|
exports.D = function() {
|
2009-06-08 21:30:10 +08:00
|
|
|
return d.D();
|
|
|
|
};
|
2009-06-08 22:17:33 +08:00
|
|
|
|
2011-10-15 07:08:36 +08:00
|
|
|
process.on('exit', function() {
|
2010-12-03 09:03:18 +08:00
|
|
|
string = 'C done';
|
|
|
|
console.log('b/c.js exit');
|
2009-08-27 00:51:04 +08:00
|
|
|
});
|