Add utilities unit tests

This commit is contained in:
Angela P Wen 2022-08-10 14:57:57 +02:00
parent ff7a29dd72
commit 484a72c924
9 changed files with 92 additions and 17 deletions

View file

@ -15,4 +15,9 @@ test("sanitizeArifactName", (t) => {
);
});
// TODO(angelapwen): Test uploadDebugArtifacts if toUpload is empty
test("uploadDebugArtifacts", async (t) => {
// Test that no error is thrown if artifacts list is empty.
await t.notThrowsAsync(
debugArtifacts.uploadDebugArtifacts([], "rootDir", "artifactName")
);
});