diff --git a/cryptojs/test/aes-tests.ts b/cryptojs/test/aes-tests.ts index eaef25447c..d4f0d95378 100644 --- a/cryptojs/test/aes-tests.ts +++ b/cryptojs/test/aes-tests.ts @@ -63,9 +63,9 @@ YUI.add('algo-aes-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/des-tests.ts b/cryptojs/test/des-tests.ts index 5e18608e0a..d889abab1e 100644 --- a/cryptojs/test/des-tests.ts +++ b/cryptojs/test/des-tests.ts @@ -87,9 +87,9 @@ YUI.add('algo-des-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/pad-iso10126-tests.ts b/cryptojs/test/pad-iso10126-tests.ts index de46f7d816..2961c9a32e 100644 --- a/cryptojs/test/pad-iso10126-tests.ts +++ b/cryptojs/test/pad-iso10126-tests.ts @@ -15,9 +15,9 @@ YUI.add('pad-iso10126-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/rabbit-legacy-tests.ts b/cryptojs/test/rabbit-legacy-tests.ts index 658d62b25c..30f3687171 100644 --- a/cryptojs/test/rabbit-legacy-tests.ts +++ b/cryptojs/test/rabbit-legacy-tests.ts @@ -63,9 +63,9 @@ YUI.add('algo-rabbit-legacy-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/rabbit-tests.ts b/cryptojs/test/rabbit-tests.ts index e8e0d3e3cf..a5690facee 100644 --- a/cryptojs/test/rabbit-tests.ts +++ b/cryptojs/test/rabbit-tests.ts @@ -67,9 +67,9 @@ YUI.add('algo-rabbit-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/rc4-tests.ts b/cryptojs/test/rc4-tests.ts index 5a4e5aa6fc..a827c0921a 100644 --- a/cryptojs/test/rc4-tests.ts +++ b/cryptojs/test/rc4-tests.ts @@ -51,9 +51,9 @@ YUI.add('algo-rc4-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes); diff --git a/cryptojs/test/tripledes-tests.ts b/cryptojs/test/tripledes-tests.ts index 2227d37103..cbc123ea3b 100644 --- a/cryptojs/test/tripledes-tests.ts +++ b/cryptojs/test/tripledes-tests.ts @@ -71,9 +71,9 @@ YUI.add('algo-tripledes-test', function (Y) { // Replace random method with one that returns a predictable value C.lib.WordArray.random = function (nBytes) { - var words = []; + var words: number[] = []; for (var i = 0; i < nBytes; i += 4) { - words.push([0x11223344]); + words.push(0x11223344); } return C.lib.WordArray.create(words, nBytes);