You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
replace q method calls with bluebird ones
``` find src spec -name '*.js' | xargs perl -i -pe 's/q\.(all|defer|reject|delay|try)\(/Promise.$1(/' ```
This commit is contained in:
@@ -136,7 +136,7 @@ describe("MegolmDecryption", function() {
|
||||
megolmDecryption.shareKeysWithDevice(keyRequest);
|
||||
|
||||
// it's asynchronous, so we have to wait a bit
|
||||
return q.delay(1).then(() => {
|
||||
return Promise.delay(1).then(() => {
|
||||
// check that it called encryptMessageForDevice with
|
||||
// appropriate args.
|
||||
expect(mockOlmLib.encryptMessageForDevice.calls.length)
|
||||
|
Reference in New Issue
Block a user