Exemplo n.º 1
0
 it('getView method should return deposit view by default', function() {
     cashierModel.set('config', {cashierType: ''});
     cashierModel.getView().should.to.be.instanceof(DepositView);
 });
Exemplo n.º 2
0
 it('getView method should return correct view, depends on config (' + payment.cashierType + ')', function() {
     cashierModel.set('config', {cashierType: payment.cashierType});
     cashierModel.getView().should.to.be.instanceof(payment.view);
 });