thenativeweb / node-viewmodel

Node-viewmodel is a node.js module for multiple databases. It can be very useful if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
http://cqrs.js.org/pages/viewmodel.html
MIT License
27 stars 20 forks source link

Fix undefined repository test in ViewModel constructor #4

Closed sbiaudet closed 10 years ago

sbiaudet commented 10 years ago

Fix this test that failed.

describe('ViewModel', function() {

describe('creating a ViewModel', function() {

describe('without repository', function() {

  it('it should throw an error', function() {

    expect(function() {
      new ViewModel({ data: 'other stuff' });
    }).to.throwError();

  });

}); ….