From 1f8ec22ce6cebdab5adb138b55231951ad0065da Mon Sep 17 00:00:00 2001 From: Sameer Kumar Subudhi Date: Fri, 26 Jan 2024 16:42:23 +0530 Subject: [PATCH] :ok_hand: Apply review suggestion --- services/export/tests/unit/shared/helpers/ready.test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/services/export/tests/unit/shared/helpers/ready.test.js b/services/export/tests/unit/shared/helpers/ready.test.js index 37cafcff71..140c0ed79e 100644 --- a/services/export/tests/unit/shared/helpers/ready.test.js +++ b/services/export/tests/unit/shared/helpers/ready.test.js @@ -53,10 +53,10 @@ describe('Test getIndexStatus method', () => { }); describe('Test checkIfIndexReadyForInterval method', () => { + beforeEach(() => jest.resetModules()); + describe('when indexing is at 100 percent', () => { beforeEach(() => { - jest.resetModules(); - const mockIndexStatus = { data: { genesisHeight: 23390992, @@ -110,8 +110,6 @@ describe('Test checkIfIndexReadyForInterval method', () => { describe('when indexing is below 100 percent', () => { beforeEach(() => { - jest.resetModules(); - const mockIndexStatus = { data: { genesisHeight: 23390992, @@ -176,8 +174,6 @@ describe('Test checkIfIndexReadyForInterval method', () => { }); describe('when indexing is around 99.99 percent', () => { - beforeEach(() => jest.resetModules()); - it('should return true when interval ends today and the indexing lags by 2 blocks', async () => { const mockIndexStatus = { data: {