@incdevco/framework
Version:
node.js lambda framework
27 lines (14 loc) • 498 B
JavaScript
var Expect = require('chai').expect;
var Call = require('./index');
var Expectation = require('../expectation');
describe('mock/call', function () {
'use strict';
it('should throw an exception when no expectation', function () {
var call = new Call('test');
try {
call.execute();
} catch (exception) {
Expect(exception.message).to.equal('\'test\' was not expected to be called.', 'exception.message');
}
});
});