[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user