Test .value() method - as used by scope getter

This commit is contained in:
Fabien Franzen 2014-09-04 21:57:18 +02:00
parent 433b89a78a
commit a815ad0c1a
1 changed files with 2 additions and 0 deletions

View File

@ -1916,6 +1916,8 @@ describe('relations', function () {
list.should.equal(addresses);
list.should.equal(p.addresses);
p.addressList.value().should.equal(list);
addresses.should.have.length(2);
addresses[0].id.should.eql(address1.id);
addresses[0].street.should.equal('Street 1');