node/test/fixtures/b/c.js

29 lines
409 B
JavaScript
Raw Normal View History

2010-12-03 09:03:18 +08:00
var d = require('./d');
2010-12-03 09:03:18 +08:00
var assert = require('assert');
2010-12-03 09:03:18 +08:00
var package = require('./package');
2010-12-03 09:03:18 +08:00
assert.equal('world', package.hello);
2010-12-05 07:20:34 +08:00
console.error('load fixtures/b/c.js');
2010-12-03 09:03:18 +08:00
var string = 'C';
exports.SomeClass = function() {
2010-06-30 14:12:46 +08:00
};
2010-12-03 09:03:18 +08:00
exports.C = function() {
return string;
};
2010-12-03 09:03:18 +08:00
exports.D = function() {
return d.D();
};
process.on('exit', function() {
2010-12-03 09:03:18 +08:00
string = 'C done';
console.log('b/c.js exit');
});