Commit 3c65c0c
committed
test(upload): deduplicate createRequestBodyForJson tests
Remove duplicate createRequestBodyForJson tests from socket-sdk-upload.test.mts
since more comprehensive tests already exist in test/unit/utils.test.mts.
Removed duplicate tests (4 tests):
- should create FormData for JSON data with default basename
- should create FormData for JSON with custom basename
- should handle basename with different extension
- should handle complex JSON objects
Test reduction:
- socket-sdk-upload.test.mts: 19 tests → 15 tests (-4 duplicate tests)
- utils.test.mts retains comprehensive coverage with additional edge cases
Coverage verification:
- Overall coverage maintained at 81.19% (no change)
- All tests still pass (551 total tests → 547 tests)
- No loss of coverage for createRequestBodyForJson function
Added note in socket-sdk-upload.test.mts to prevent future duplication.1 parent 8b433fd commit 3c65c0c
1 file changed
+2
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 130 | + | |
| 131 | + | |
177 | 132 | | |
178 | 133 | | |
179 | 134 | | |
| |||
0 commit comments