mirror of https://gitee.com/bigwinds/arangodb
Foxx Repository: Also check the returned object of byId
This commit is contained in:
parent
70c6b403b2
commit
6618ac6801
|
@ -161,7 +161,7 @@ function RepositoryMethodsSpec() {
|
|||
collection.assertIsSatisfied();
|
||||
},
|
||||
|
||||
testByIdReturnValue: function () {
|
||||
testByIdConstructsModelAndReturnsIt: function () {
|
||||
allow(collection)
|
||||
.toReceive("document")
|
||||
.andReturn(data);
|
||||
|
@ -171,6 +171,7 @@ function RepositoryMethodsSpec() {
|
|||
|
||||
model = instance.byId(id);
|
||||
|
||||
assertTrue(model instanceof ModelPrototype);
|
||||
ModelPrototype.assertIsSatisfied();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue