describe('Alexa', function() { var Alexa = require('../index'); describe('app', function() { describe('instantiate app', function() { it('fails when alexa.app was called without the new keyword', function() { var message; try { var testApp = Alexa.app('testApp'); } catch (e) { message = e.message; } return expect(Promise.resolve(message)) .to.eventually.equal('Function must be called with the new keyword'); }); }); }); });
it('Channel 4', function () { let expectation = '4'; let result = k.commandChannelForCmd(4); return expect(result).to.eventually.equal(expectation); });
it('Channel 15', function () { let expectation = 'u'; let result = k.commandChannelOff(15); return expect(result).to.eventually.equal(expectation); });
it('Channel 12', function () { let expectation = 'R'; let result = k.commandChannelOn(12); return expect(result).to.eventually.equal(expectation); });
it('Channel 13', function () { let expectation = 'T'; let result = k.commandChannelForCmd(13); return expect(result).to.eventually.equal(expectation); });
it('Channel 16', function () { let expectation = 'I'; let result = k.commandChannelOn(16); return expect(result).to.eventually.equal(expectation); });
it('Channel 14', function () { let expectation = 'Y'; let result = k.commandChannelForCmd(14); return expect(result).to.eventually.equal(expectation); });
it('Channel 2', function () { let expectation = '2'; let result = k.commandChannelOff(2); return expect(result).to.eventually.equal(expectation); });
it('Channel 3', function () { let expectation = '3'; let result = k.commandChannelOff(3); return expect(result).to.eventually.equal(expectation); });
it('Channel 1', function () { let expectation = '!'; let result = k.commandChannelOn(1); return expect(result).to.eventually.equal(expectation); });
it('Channel 4', function () { let expectation = '$'; let result = k.commandChannelOn(4); return expect(result).to.eventually.equal(expectation); });
it('Channel 5', function () { let expectation = '%'; let result = k.commandChannelOn(5); return expect(result).to.eventually.equal(expectation); });
it('Channel 11', function () { let expectation = 'E'; let result = k.commandChannelOn(11); return expect(result).to.eventually.equal(expectation); });
it('Channel 15', function () { let expectation = 'U'; let result = k.commandChannelOn(15); return expect(result).to.eventually.equal(expectation); });
it('Channel 10', function () { let expectation = 'W'; let result = k.commandChannelForCmd(10); return expect(result).to.eventually.equal(expectation); });