fix: harden analytics writes and hide internal server errors from client
This commit is contained in:
1 parent
770b4d59d2
commit
129681ebd7
15 files changed
+217
-128
No files matched your search
@@ -37,3 +37,8 @@ test('stringToColor', () => {
|
||||
expect(format.stringToColor('hello')).toBe('#d218e9');
|
||||
expect(format.stringToColor('goodbye')).toBe('#11e956');
|
||||
});
|
||||
|
||||
test('truncateString', () => {
|
||||
expect(format.truncateString('hello', 3)).toBe('hel');
|
||||
expect(format.truncateString(undefined, 3)).toBeUndefined();
|
||||
});
|
||||
Reference in new issue
Block a user