Skip to content

Commit

Permalink
Include test
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg committed May 19, 2023
1 parent a468759 commit e7498b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"main": "testUtils.ts",
"dependencies": {
"@jfrog/tasks-utils": "file:../jfrog-tasks-utils/jfrog-tasks-utils-1.0.0.tgz",
"@jfrog/test-utils": "file:",
"azure-pipelines-task-lib": "^3.1.10",
"fs-extra": "^7.0.1",
"js-yaml": "^3.13.1",
Expand Down
11 changes: 11 additions & 0 deletions tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,17 @@ describe('JFrog Artifactory Extension Tests', (): void => {
TestUtils.isSkipTest('generic')
);

runSyncTest(
'Upload and download with working directory',
(): void => {
const testDir: string = 'uploadAndDownloadWithWorkingDirectory';
mockTask(testDir, 'upload');
mockTask(testDir, 'download');
assertFiles(path.join(testDir, 'files'), testDir);
},
TestUtils.isSkipTest('generic')
);

runSyncTest(
'Upload and dry-run download',
(): void => {
Expand Down

0 comments on commit e7498b6

Please sign in to comment.