Skip to content

Commit d8a59ad

Browse files
🧪 test: Correct str fixture implementation.
1 parent e0db420 commit d8a59ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/_fixtures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function str(any) {
22
const s = JSON.stringify(any);
3-
if (s <= 40) return s;
3+
if (s.length <= 40) return s;
44
return s.slice(0, 19) + '..' + s.slice(-19);
55
}

0 commit comments

Comments
 (0)