瀏覽代碼

Fix OCB2 test dependecy checking

Artem S Vybornov 15 年之前
父節點
當前提交
6ee517c7cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/ocb2_test.js

+ 1 - 1
test/ocb2_test.js

@@ -1,5 +1,5 @@
 new sjcl.test.TestCase("OCB 2.0 mode tests", function (cb) {
-  if (!sjcl.cipher.aes) {
+  if (!sjcl.cipher.aes || !sjcl.mode.ocb2) {
     this.unimplemented();
     cb && cb();
     return;