node/test/fixtures/a.js

26 lines
341 B
JavaScript
Raw Normal View History

2010-12-03 09:03:18 +08:00
var c = require('./b/c');
2010-12-03 09:03:18 +08:00
common.debug('load fixtures/a.js');
2010-12-03 09:03:18 +08:00
var string = 'A';
exports.SomeClass = c.SomeClass;
2010-12-03 09:03:18 +08:00
exports.A = function() {
return string;
};
2010-12-03 09:03:18 +08:00
exports.C = function() {
return c.C();
};
2010-12-03 09:03:18 +08:00
exports.D = function() {
return c.D();
};
exports.number = 42;
2010-12-03 09:03:18 +08:00
process.addListener('exit', function() {
string = 'A done';
});