Add test for Stickers.redactPackId
This commit is contained in:
parent
cebe72ece7
commit
3b05e9ad8f
2 changed files with 15 additions and 0 deletions
14
test/stickers_test.js
Normal file
14
test/stickers_test.js
Normal 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'
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue