Skip crypto tests on PhantomJS

pull/21833/head
Richard van der Hoff 2017-01-14 01:41:48 +00:00
parent d63f7e8359
commit e37bf6b7be
1 changed files with 7 additions and 0 deletions

View File

@ -56,6 +56,13 @@ function stringToArray(s) {
}
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() {
testUtils.beforeEach(this);
});