Skip to content

Commit

Permalink
ARCH-2011 - Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielle-casella-adams committed Feb 27, 2024
1 parent e8544d2 commit 62290e6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions test/assert-pr-comment-matches-expectations.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
module.exports = async (core, actualComment, actualTestResults, expectedComment) => {
function assertLengthsAreTheSame(prCommentLength, testResultsMdLength) {
core.info(`\n\tPR Comment length:\t\t'${prCommentLength}'`);
core.info(`\ttest-results.md length: '${testResultsMdLength}'`);

if (prCommentLength != testResultsMdLength) {
core.setFailed(`\tThe lengths do not match, which is not expected.`);
} else {
core.info(`\tThe lengths match, which is expected.`);
}
}

function assertLengthsAreNotTheSame(prCommentLength, testResultsMdLength) {
core.info(`\n\tPR Comment length:\t\t'${prCommentLength}'`);
core.info(`\ttest-results.md length: '${testResultsMdLength}'`);

if (prCommentLength != testResultsMdLength) {
core.info(`\tThe lengths do not match, which is expected.`);
} else {
core.setFailed(`\tThe lengths match, which is not expected.`);
}
}

function assertCreatedAndUpdatedMatch(created, updated) {
core.info(`\n\tCreated: '${created}'`);
core.info(`\tUpdated: '${updated}'`);
Expand Down

0 comments on commit 62290e6

Please sign in to comment.