UNPKG

556 BJavaScriptView Raw
1'use strict';
2
3var IConnectionServer = require('./../core/IConnectionServer');
4
5describe('Interfaces', function() {
6 it('"IConnectionServer" should has methods', function() {
7 var preudo_instance = new IConnectionServer({}, {});
8
9 (function() {
10 preudo_instance.configure(function() {});
11 }).should.throw();
12
13 (function() {
14 preudo_instance.listen(function() {});
15 }).should.throw();
16
17 (function() {
18 preudo_instance.close(function() {});
19 }).should.throw();
20 });
21});