diff --git a/js/common/tests/shell-foxx-repository.js b/js/common/tests/shell-foxx-repository.js index 560ec027f6..18d9c9298d 100644 --- a/js/common/tests/shell-foxx-repository.js +++ b/js/common/tests/shell-foxx-repository.js @@ -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(); } };