UNPKG

492 BJavaScriptView Raw
1/* global describe, it, before, beforeEach, after, afterEach */
2var should = require('should');
3var Status = require('../state/status');
4
5describe('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