mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-01 22:57:41 -04:00
Merge remote-tracking branch 'origin/master' into PBL-31966/include-user-and-watch-info
# Conflicts: # dist/clay.js # test/spec/index.js
This commit is contained in:
@@ -76,10 +76,15 @@ describe('Clay', function() {
|
||||
function() {
|
||||
stubPebble();
|
||||
var clay = fixture.clay([]);
|
||||
|
||||
// we stub the generateUrl method to avoid very large string comparisons.
|
||||
var generateUrlStub = sinon.stub(clay, 'generateUrl');
|
||||
generateUrlStub.returns('data:text/html;base64,PGh0bWw%2BVEVTVDwvaHRtbD4%3D');
|
||||
Pebble.addEventListener.withArgs('showConfiguration').callArg(1);
|
||||
|
||||
assert(Pebble.addEventListener.calledWith('showConfiguration'));
|
||||
assert(Pebble.openURL.calledWith(clay.generateUrl()));
|
||||
generateUrlStub.restore();
|
||||
});
|
||||
|
||||
it('handles the "webviewclosed" event if autoHandleEvents is not false',
|
||||
|
||||
Reference in New Issue
Block a user