Add test for Stickers.redactPackId

This commit is contained in:
Evan Hahn 2020-08-17 14:59:46 -05:00 committed by Josh Perez
parent cebe72ece7
commit 3b05e9ad8f
2 changed files with 15 additions and 0 deletions

14
test/stickers_test.js Normal file
View file

@ -0,0 +1,14 @@
/* global Signal */
const { Stickers } = Signal;
describe('Stickers', () => {
describe('redactPackId', () => {
it('redacts pack IDs', () => {
assert.strictEqual(
Stickers.redactPackId('b9439fa5fdc8b9873fe64f01b88b8ccf'),
'[REDACTED]ccf'
);
});
});
});