X-Git-Url: http://git.squeep.com/?p=squeep-mystery-box;a=blobdiff_plain;f=test%2Flib%2Fmystery-box.js;fp=test%2Flib%2Fmystery-box.js;h=c71f6ff0fe8081cb22ef4f95399ffe099224b4e1;hp=2f2b734e0a3271c47530b90d11b03664d59a2383;hb=1cbcff24343426923a4329a1d1ecb797050fee9c;hpb=e132bd4b4189689eb5901e6507b4a1a1896182bd diff --git a/test/lib/mystery-box.js b/test/lib/mystery-box.js index 2f2b734..c71f6ff 100644 --- a/test/lib/mystery-box.js +++ b/test/lib/mystery-box.js @@ -73,7 +73,7 @@ describe('MysteryBox', function () { it('covers unpacking unsupported version', async function () { const badBuffer = Buffer.alloc(128); badBuffer.writeUInt8(0, 0); // No such thing as version 0 - const badPayload = badBuffer.toString('base64'); + const badPayload = badBuffer.toString('base64url'); assert.rejects(() => mb.unpack(badPayload), RangeError); });