Add coverage for core utility behavior

This commit is contained in:
Mike Cao committed 2026-07-24 13:52:37 -07:00
1 parent ba741eb617
commit 65e810ec79
24 files changed
+1882 -22

No files matched your search

+3 -3
View File
@@ -4,9 +4,9 @@ import { getStoredStringValue } from './data';
describe('getStoredStringValue', () => {
test('truncates oversized string values to the storage limit', () => {
expect(getStoredStringValue('x'.repeat(FIELD_LENGTH.stringValue + 25), DATA_TYPE.string)).toHaveLength(
FIELD_LENGTH.stringValue,
);
expect(
getStoredStringValue('x'.repeat(FIELD_LENGTH.stringValue + 25), DATA_TYPE.string),
).toHaveLength(FIELD_LENGTH.stringValue);
});
test('drops oversized array payloads instead of storing invalid truncated JSON', () => {