Skip to content

Commit 874c4f0

Browse files
Remove zip archive from build directory (#334)
* Update task-lib and remove mockery * Remove test archive from build directory
1 parent 380dfaa commit 874c4f0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

common-npm-packages/webdeployment-common/Tests/L1ZipUtility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { checkIfFilesExistsInZip } from "../ziputility";
55
export function runL1ZipUtilityTests(this: Mocha.Suite): void {
66

77
it("Should skip ZIP entries validation", async () => {
8-
const archive = path.join(__dirname, 'L1ZipUtility', 'potentially_malicious.zip');
8+
const archive = path.join(__dirname, '..', '..', 'Tests', 'L1ZipUtility', 'potentially_malicious.zip');
99

1010
const exists = await checkIfFilesExistsInZip(archive, ['index.html']);
1111

common-npm-packages/webdeployment-common/make.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ util.cp('-r', 'node_modules', buildPath);
1616
util.cp('-r', 'Strings', buildPath);
1717
util.cp('-r', 'WebConfigTemplates', buildPath);
1818
util.cp('-r', 'Tests', buildPath);
19+
util.rm('-rf', path.join(buildPath, 'Tests', 'L1ZipUtility'));

0 commit comments

Comments
 (0)