Switch webpush
dependency to latest version of Mastodon-maintained fork (#33572)
This commit is contained in:
parent
50449ae7ac
commit
68d818121d
5 changed files with 8 additions and 8 deletions
|
@ -35,7 +35,7 @@ RSpec.describe Web::PushNotificationWorker do
|
|||
before do
|
||||
Setting.site_contact_email = contact_email
|
||||
|
||||
allow(Webpush::Encryption).to receive(:encrypt).and_return(payload)
|
||||
allow(Webpush::Legacy::Encryption).to receive(:encrypt).and_return(payload)
|
||||
allow(JWT).to receive(:encode).and_return('jwt.encoded.payload')
|
||||
|
||||
stub_request(:post, endpoint).to_return(status: 201, body: '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue