Skip to content

Commit

Permalink
test label tweak and exec.reset call to make sure
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed May 7, 2012
1 parent b4ec5f7 commit dd7ab28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("geolocation", function () {
});

describe("getCurrentPosition", function() {
describe("arguments", function () {
describe("and passed-in arguments", function () {
it("uses default PositionOptions if none are specified", function () {
geo.getCurrentPosition(s, e);
expect(exec).toHaveBeenCalledWith(jasmine.any(Function), jasmine.any(Function), "Geolocation", "getLocation", [false, 0]);
Expand Down Expand Up @@ -244,6 +244,7 @@ describe("geolocation", function () {
describe("clearWatch", function () {
it("should tell native to remove an id from the watch list if it exists", function() {
var id = geo.watchPosition(s, e);
exec.reset();
geo.clearWatch(id);
expect(exec).toHaveBeenCalledWith(null, null, "Geolocation", "clearWatch", [id]);
});
Expand Down

0 comments on commit dd7ab28

Please sign in to comment.