Display user badges

This commit is contained in:
Evan Hahn 2021-11-02 18:01:13 -05:00 committed by GitHub
parent 927c22ef73
commit f647c4e053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
95 changed files with 2891 additions and 424 deletions

View file

@ -240,6 +240,12 @@ describe('Attachments', () => {
it('should return random file name with correct length', () => {
assert.lengthOf(Attachments.createName(), NAME_LENGTH);
});
it('can include a suffix', () => {
const result = Attachments.createName('.txt');
assert.lengthOf(result, NAME_LENGTH + '.txt'.length);
assert(result.endsWith('.txt'));
});
});
describe('getRelativePath', () => {