2010-12-03 02:03:18 +01:00
|
|
|
var d = require('./d');
|
2009-10-31 19:02:30 +01:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
var assert = require('assert');
|
2009-10-31 19:02:30 +01:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
var package = require('./package');
|
2009-10-31 19:02:30 +01:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
assert.equal('world', package.hello);
|
2009-06-08 15:30:10 +02:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
common.debug('load fixtures/b/c.js');
|
2009-09-28 12:06:30 +02:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
var string = 'C';
|
2009-06-08 16:17:33 +02:00
|
|
|
|
2010-02-11 12:09:46 +01:00
|
|
|
exports.SomeClass = function() {
|
2010-06-30 08:12:46 +02:00
|
|
|
|
2010-02-11 12:09:46 +01:00
|
|
|
};
|
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
exports.C = function() {
|
2009-06-08 16:17:33 +02:00
|
|
|
return string;
|
2009-06-08 15:30:10 +02:00
|
|
|
};
|
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
exports.D = function() {
|
2009-06-08 15:30:10 +02:00
|
|
|
return d.D();
|
|
|
|
};
|
2009-06-08 16:17:33 +02:00
|
|
|
|
2010-12-03 02:03:18 +01:00
|
|
|
process.addListener('exit', function() {
|
|
|
|
string = 'C done';
|
|
|
|
console.log('b/c.js exit');
|
2009-08-26 18:51:04 +02:00
|
|
|
});
|