use native base64url encoding, remove external dependency
[squeep-mystery-box] / test / lib / mystery-box.js
index 2f2b734e0a3271c47530b90d11b03664d59a2383..c71f6ff0fe8081cb22ef4f95399ffe099224b4e1 100644 (file)
@@ -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);
     });