From b683dc300d7bcaade09c59c5434ceaa5c22a4cbd Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 14 Sep 2021 15:25:40 +0100 Subject: [PATCH] tests: Check for leak of read-write pad ID when exporting --- src/tests/backend/specs/api/importexportGetPost.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/backend/specs/api/importexportGetPost.js b/src/tests/backend/specs/api/importexportGetPost.js index daa8435b3..9dd4defc8 100644 --- a/src/tests/backend/specs/api/importexportGetPost.js +++ b/src/tests/backend/specs/api/importexportGetPost.js @@ -147,6 +147,10 @@ describe(__filename, function () { it('export OK', async function () { assert.match(text, /This is the/); }); + + it('writable pad ID is not leaked', async function () { + assert(!text.includes(testPadId)); + }); }); } });