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
95 changed files with 2891 additions and 424 deletions
@@ -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', () => {