var assert = require('assert'),
path = require('path'),
vows = require('vows'),
fmonitor = require('../../lib');
vows.describe('forever/core/check-process').addBatch({
"When using forever": {
"checking if process exists": {
"if process exists": {
topic: fmonitor.checkProcess(process.pid),
"should return true": function (result) {
assert.isTrue(result);
}
},
"if process doesn't exist": {
topic: fmonitor.checkProcess(255 * 255 * 255),
"should return false": function (result) {
assert.isFalse(result);
}
}
}
}
}).export(module);