diff --git a/CHANGELOG.md b/CHANGELOG.md index 311cc5a64..c9b5ea979 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Deprecated +- Remove deprecation warnings in bulk.test.js ([#434](https://github.com/opensearch-project/opensearch-js/issues/434)) + ### Removed - Remove waitCluster in Integration Tests ([#422](https://github.com/opensearch-project/opensearch-js/issues/422)) diff --git a/test/unit/helpers/bulk.test.js b/test/unit/helpers/bulk.test.js index 77558879b..f0d375e44 100644 --- a/test/unit/helpers/bulk.test.js +++ b/test/unit/helpers/bulk.test.js @@ -1051,11 +1051,11 @@ test('bulk update', (t) => { let count = 0; const MockConnection = connection.buildMockConnection({ onRequest(params) { - t.strictEqual(params.path, '/_bulk'); + t.equal(params.path, '/_bulk'); t.match(params.headers, { 'content-type': 'application/x-ndjson' }); const [action, payload] = params.body.split('\n'); - t.deepEqual(JSON.parse(action), { update: { _index: 'test', _id: count } }); - t.deepEqual(JSON.parse(payload), { doc: dataset[count++], doc_as_upsert: true }); + t.same(JSON.parse(action), { update: { _index: 'test', _id: count } }); + t.same(JSON.parse(payload), { doc: dataset[count++], doc_as_upsert: true }); return { body: { errors: false, items: [{ update: { result: 'noop' } }] } }; }, }); @@ -1465,13 +1465,13 @@ test('Flush interval', (t) => { let count = 0; const MockConnection = connection.buildMockConnection({ onRequest(params) { - t.strictEqual(params.path, '/_bulk'); + t.equal(params.path, '/_bulk'); t.match(params.headers, { 'content-type': 'application/x-ndjson', }); const [action, payload] = params.body.split('\n'); - t.deepEqual(JSON.parse(action), { index: { _index: 'test' } }); - t.deepEqual(JSON.parse(payload), dataset[count++]); + t.same(JSON.parse(action), { index: { _index: 'test' } }); + t.same(JSON.parse(payload), dataset[count++]); return { body: { errors: false, items: [{}] } }; }, });