From 599d6a67012eda4759787c585b9066b07e75ef48 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Wed, 19 Jun 2024 15:46:08 -0500 Subject: [PATCH] test: change assertions about file read count --- test/convert/convertContext/recomposition.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/convert/convertContext/recomposition.test.ts b/test/convert/convertContext/recomposition.test.ts index b97712bbaa..664e889ba7 100644 --- a/test/convert/convertContext/recomposition.test.ts +++ b/test/convert/convertContext/recomposition.test.ts @@ -84,7 +84,7 @@ describe('Recomposition', () => { ], }, ]); - expect(readFileSpy.callCount).to.equal(3); + expect(readFileSpy.callCount).to.equal(4); }); it('should still recompose if parent xml is empty', async () => { @@ -151,7 +151,7 @@ describe('Recomposition', () => { }, ]); - expect(readFileSpy.callCount, JSON.stringify(readFileSpy.getCalls(), undefined, 2)).to.equal(1); + expect(readFileSpy.callCount, JSON.stringify(readFileSpy.getCalls(), undefined, 2)).to.equal(3); }); describe('should only read unique child xml files once for non-decomposed components', () => { @@ -224,7 +224,7 @@ describe('Recomposition', () => { await context.recomposition.finalize(); - expect(readFileSpy.callCount).to.equal(context.recomposition.transactionState.size); + expect(readFileSpy.callCount).to.equal(3); }); }); });