summaryrefslogtreecommitdiff
path: root/node_modules/forever/test/service/simple-test.js
blob: 5f58fad5839cf2debfb9fe9278bdcd1fc7b823a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * service-test.js: Tests for the forever.service module
 *
 * (C) 2010 Nodejitsu Inc.
 * MIT LICENCE
 *
 */

var assert = require('assert'),
    path = require('path'),
    vows = require('vows'),
    forever = require('../../lib/forever');

vows.describe('forever/service/simple').addBatch({
  "When using forever": {
    "the service module": {
      "should have the correct exports": function () {
        assert.isObject(forever.service);
        assert.isFunction(forever.service.Service);
        assert.isObject(forever.service.adapters);
        assert.isFunction(forever.service.adapters.initd);
      }
    }
  }
}).export(module);