Add coverage for core utility behavior
This commit is contained in:
1 parent
ba741eb617
commit
65e810ec79
24 files changed
+1882
-22
No files matched your search
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user