From 8ccafbc821c0a88d53f2cb6a3cb14c5791920975 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 9 Jan 2020 10:59:20 +0100 Subject: [PATCH] Fix tests for invite url --- www/assert/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/assert/main.js b/www/assert/main.js index 6ad05a7a2..cdde441f0 100644 --- a/www/assert/main.js +++ b/www/assert/main.js @@ -255,11 +255,11 @@ define([ }, "test support for trailing slashes in version 1 hash failed to parse"); assert(function (cb) { - var secret = Hash.parsePadUrl('/invite/#/1/ilrOtygzDVoUSRpOOJrUuQ/e8jvf36S3chzkkcaMrLSW7PPrz7VDp85lIFNI26dTmr=/'); + var secret = Hash.parsePadUrl('/invite/#/2/invite/edit/oRE0oLCtEXusRDyin7GyLGcS/p/'); var hd = secret.hashData; - cb(hd.channel === "ilrOtygzDVoUSRpOOJrUuQ" && - hd.pubkey === "e8jvf36S3chzkkcaMrLSW7PPrz7VDp85lIFNI26dTmr=" && - hd.type === 'invite'); + cb(hd.key === "oRE0oLCtEXusRDyin7GyLGcS" && + hd.password && + hd.app === 'invite'); }, "test support for invite urls"); // test support for V2