[Location] setPrimaryLocation takes location.

Rename "persistLocation" to be more clearly named, and make it take an
argument to allow for greater control outside the capability.
This commit is contained in:
Pete Richards
2015-08-19 11:15:09 -07:00
parent eb776e69c0
commit 9cf30f4213
4 changed files with 28 additions and 14 deletions

View File

@@ -70,7 +70,8 @@ define(
});
it("can persist location", function () {
var persistResult = locationCapability.persistLocation(),
var persistResult = locationCapability
.setPrimaryLocation('root'),
whenComplete = jasmine.createSpy('whenComplete');
persistResult.then(whenComplete);