We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ba803 commit 4574f3dCopy full SHA for 4574f3d
1 file changed
test/index.js
@@ -5,6 +5,7 @@ var CipherBase = require('../');
5
6
var test = require('tape');
7
var inherits = require('inherits');
8
+const os = require('os');
9
10
test('basic version', function (t) {
11
function Cipher() {
@@ -212,7 +213,11 @@ test('handle UInt16Array', function (t) {
212
213
if (ArrayBuffer.isView && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT)) {
214
var cipher = new Cipher();
215
var final = cipher.update(new Uint16Array([1234, 512])).finalName('hex');
- t.equals(final, 'd2040002');
216
+ if ( os.endianness() === "BE") {
217
+ t.equals(final, '04d20200');
218
+ } else {
219
+ t.equals(final, 'd2040002');
220
+ }
221
} else {
222
t.skip('ArrayBuffer.isView and/or TypedArray not fully supported');
223
}
0 commit comments