From 3b05e9ad8f6895c7d71e08d85c3dbb58ad04f869 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Mon, 17 Aug 2020 14:59:46 -0500 Subject: [PATCH] Add test for Stickers.redactPackId --- test/index.html | 1 + test/stickers_test.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/stickers_test.js diff --git a/test/index.html b/test/index.html index cd238ca0a..226509123 100644 --- a/test/index.html +++ b/test/index.html @@ -385,6 +385,7 @@ + diff --git a/test/stickers_test.js b/test/stickers_test.js new file mode 100644 index 000000000..c289abf19 --- /dev/null +++ b/test/stickers_test.js @@ -0,0 +1,14 @@ +/* global Signal */ + +const { Stickers } = Signal; + +describe('Stickers', () => { + describe('redactPackId', () => { + it('redacts pack IDs', () => { + assert.strictEqual( + Stickers.redactPackId('b9439fa5fdc8b9873fe64f01b88b8ccf'), + '[REDACTED]ccf' + ); + }); + }); +});