Skip to content

Commit 9ae7f20

Browse files
committed
fix: exportFileName checks in tests
1 parent 7f4dcc0 commit 9ae7f20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,8 @@ export class PackageVersionBuilder implements IPackageVersionBuilder {
816816
this.packageChangesCache.clear()
817817
this.operations.clear()
818818
this.documents.clear()
819+
this.exportDocuments = []
820+
this.exportFileName = undefined
819821
this.comparisons = []
820822

821823
this.notifications = []

test/export.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe('Export test', () => {
157157
buildType: BUILD_TYPE.EXPORT_VERSION,
158158
format: 'json',
159159
})
160-
expect(result.exportFileName).toEqual('export_single-document-version.zip')
160+
expect(result.exportFileName).toEqual('export_single-document-version_1.json')
161161
// todo check zip content
162162
})
163163

@@ -167,7 +167,7 @@ describe('Export test', () => {
167167
buildType: BUILD_TYPE.EXPORT_VERSION,
168168
format: 'yaml',
169169
})
170-
expect(result.exportFileName).toEqual('export_single-document-version.zip')
170+
expect(result.exportFileName).toEqual('export_single-document-version_1.yaml')
171171
// todo check zip content
172172
})
173173

0 commit comments

Comments
 (0)