[Location] can retrieve contextual location

Clarify naming of method for retrieving contextual location of a domain
object.

Default behavior for objects that do not have a context is to return
undefined.  Note that default behavior is not specified and could change
if needed.
This commit is contained in:
Pete Richards
2015-08-19 11:28:58 -07:00
parent 9cf30f4213
commit 94854e5965
3 changed files with 13 additions and 11 deletions

View File

@ -52,8 +52,8 @@ define(
locationCapability = new LocationCapability(domainObject);
});
it("returns location", function () {
expect(locationCapability.getLocation())
it("returns contextual location", function () {
expect(locationCapability.getContextualLocation())
.toBe('root');
});