Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- test_web_channel.js
- +++ test_web_channel.js
- @@ -800,21 +805,30 @@
- },
- });
- - helpers.shouldAllowFxaStatus = (service, sendingContext) => {
- + helpers.shouldAllowFxaStatus = (
- + service,
- + sendingContext,
- + isPairing,
- + context
- + ) => {
- wasCalled.shouldAllowFxaStatus = true;
- Assert.equal(service, "sync");
- Assert.equal(sendingContext, mockSendingContext);
- + Assert.ok(!isPairing);
- + Assert.equal(context, "fx_desktop_v3");
- return false;
- };
- - return helpers.getFxaStatus("sync", mockSendingContext).then(fxaStatus => {
- - Assert.ok(!!fxaStatus);
- - Assert.ok(!wasCalled.getSignedInUser);
- - Assert.ok(wasCalled.shouldAllowFxaStatus);
- + return helpers
- + .getFxaStatus("sync", mockSendingContext, false, "fx_desktop_v3")
- + .then(fxaStatus => {
- + Assert.ok(!!fxaStatus);
- + Assert.ok(!wasCalled.getSignedInUser);
- + Assert.ok(wasCalled.shouldAllowFxaStatus);
- - Assert.equal(null, fxaStatus.signedInUser);
- - });
- + Assert.equal(null, fxaStatus.signedInUser);
- + });
- });
- add_task(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement