You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
585 B
JavaScript

describe('Creating a Channel', function() {
var
ch,
chName,
name = 'test',
v, c, r;
beforeEach(function() {
ch = new Wreqr.Channel( name );
});
it( 'should set the name', function() {
expect( ch.channelName ).toEqual( name );
});
it( 'should instantiate a new instance of each messaging system', function() {
expect( ch.vent instanceof Backbone.Wreqr.EventAggregator ).toBeTruthy();
expect( ch.commands instanceof Backbone.Wreqr.Commands ).toBeTruthy();
expect( ch.reqres instanceof Backbone.Wreqr.RequestResponse ).toBeTruthy();
});
});