Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. --- test_web_channel.js
  2. +++ test_web_channel.js
  3. @@ -800,21 +805,30 @@
  4. },
  5. });
  6.  
  7. - helpers.shouldAllowFxaStatus = (service, sendingContext) => {
  8. + helpers.shouldAllowFxaStatus = (
  9. + service,
  10. + sendingContext,
  11. + isPairing,
  12. + context
  13. + ) => {
  14. wasCalled.shouldAllowFxaStatus = true;
  15. Assert.equal(service, "sync");
  16. Assert.equal(sendingContext, mockSendingContext);
  17. + Assert.ok(!isPairing);
  18. + Assert.equal(context, "fx_desktop_v3");
  19.  
  20. return false;
  21. };
  22.  
  23. - return helpers.getFxaStatus("sync", mockSendingContext).then(fxaStatus => {
  24. - Assert.ok(!!fxaStatus);
  25. - Assert.ok(!wasCalled.getSignedInUser);
  26. - Assert.ok(wasCalled.shouldAllowFxaStatus);
  27. + return helpers
  28. + .getFxaStatus("sync", mockSendingContext, false, "fx_desktop_v3")
  29. + .then(fxaStatus => {
  30. + Assert.ok(!!fxaStatus);
  31. + Assert.ok(!wasCalled.getSignedInUser);
  32. + Assert.ok(wasCalled.shouldAllowFxaStatus);
  33.  
  34. - Assert.equal(null, fxaStatus.signedInUser);
  35. - });
  36. + Assert.equal(null, fxaStatus.signedInUser);
  37. + });
  38. });
  39.  
  40. add_task(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement