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' + ); + }); + }); +});