1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Skip crypto tests on PhantomJS

This commit is contained in:
Richard van der Hoff
2017-01-14 01:41:48 +00:00
parent d63f7e8359
commit e37bf6b7be

View File

@ -56,6 +56,13 @@ function stringToArray(s) {
} }
describe('MegolmExportEncryption', function() { describe('MegolmExportEncryption', function() {
before(function() {
// if we don't have subtlecrypto, go home now
if (!window.crypto.subtle && !window.crypto.webkitSubtle) {
this.skip();
}
})
beforeEach(function() { beforeEach(function() {
testUtils.beforeEach(this); testUtils.beforeEach(this);
}); });