diff --git a/test/convert/metadataConverter.test.ts b/test/convert/metadataConverter.test.ts index fb8fa833c..df041ac20 100644 --- a/test/convert/metadataConverter.test.ts +++ b/test/convert/metadataConverter.test.ts @@ -322,6 +322,7 @@ describe('MetadataConverter', () => { const result = await converter.convert(components, 'metadata', { type: 'zip' }); expect(result.zipBuffer).to.deep.equal(testBuffer); + expect(result.zipFileCount).to.equal(1); }); it('should return packagePath in result', async () => { diff --git a/test/convert/streams.test.ts b/test/convert/streams.test.ts index dc2d07e87..191dfd5a9 100644 --- a/test/convert/streams.test.ts +++ b/test/convert/streams.test.ts @@ -483,6 +483,7 @@ describe('Streams', () => { // NOTE: Zips must only contain files with posix paths expect(jsZipFileStub.firstCall.args[0]).to.equal('classes/myComponent.cls-meta.xml'); expect(jsZipFileStub.firstCall.args[1]).to.deep.equal(Buffer.from('hi')); + expect(writer.fileCount).to.equal(3); }); it('should add entries to zip based on given write infos when zip is in-memory only', async () => { @@ -495,6 +496,7 @@ describe('Streams', () => { }); expect(jsZipFileStub.firstCall.args[0]).to.equal('classes/myComponent.cls-meta.xml'); expect(jsZipFileStub.firstCall.args[1]).to.deep.equal(Buffer.from('hi')); + expect(writer.fileCount).to.equal(3); }); it('should generateAsync zip when stream is finished', async () => {