Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patelchandni committed May 2, 2024
1 parent 06db495 commit 395e758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/handlers/contentPreparer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('Check ContentPreparer', function () {
StateConstant.PreparePublishContent, params, PackageType.folder
);
} catch (e) {
expect((e as Error).message).to.contains('Failed to archive');
expect(e.message).to.contains('Failed to archive');
}
});

Expand All @@ -164,7 +164,7 @@ describe('Check ContentPreparer', function () {
StateConstant.PreparePublishContent, params, PackageType.jar
);
} catch (e) {
expect((e as Error).message).to.contains('only accepts zip or folder');
expect(e.message).to.contains('only accepts zip or folder');
}
});

Expand Down

0 comments on commit 395e758

Please sign in to comment.