1 | /* global describe, it, before, beforeEach, after, afterEach */
|
2 | var should = require('should');
|
3 | var Status = require('../state/status');
|
4 |
|
5 | describe('Connection status state machine', function() {
|
6 | var status = null;
|
7 |
|
8 | before(function() {
|
9 | status = new Status();
|
10 | });
|
11 |
|
12 | it('is a state machine', function() {
|
13 | should.exist(status.state);
|
14 | status.state.should.be.Function;
|
15 | });
|
16 |
|
17 | it('is in the root state', function() {
|
18 | status.state().name.should.equal('Stopped');
|
19 | });
|
20 | });
|
21 |
|