Skip to content

Commit a017b64

Browse files
committed
fix: add explicit any type for simplified test data in mapBulk tests
- Test data intentionally uses simplified structure without _index property - Using any[] type annotation to avoid TypeScript strict type checking on test fixtures
1 parent c99473a commit a017b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe('Elasticsearch utils', () => {
223223

224224
describe('mapBulk', () => {
225225
it('should get rid of action name property swap around meta and the doc', () => {
226-
const items = [
226+
const items: any[] = [
227227
{ create: { status: 409, _id: '12' } },
228228
{ index: { result: 'created', _id: '13' } },
229229
{ delete: { result: 'deleted' } },
@@ -256,7 +256,7 @@ describe('Elasticsearch utils', () => {
256256
})
257257

258258
it('should not change original items', () => {
259-
const items = [{ create: { status: 409, _id: '12' } }]
259+
const items: any[] = [{ create: { status: 409, _id: '12' } }]
260260
const itemsSnapshot = JSON.stringify(items)
261261

262262
mapBulk(items, 'id', '_meta')

0 commit comments

Comments
 (0)