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

@ -30,5 +30,8 @@ const debugArtifacts = __importStar(require("./debug-artifacts"));
t.deepEqual(debugArtifacts.sanitizeArifactName("hello===123"), "hello123");
t.deepEqual(debugArtifacts.sanitizeArifactName("*m)a&n^y%i££n+v!a:l[i]d"), "manyinvalid");
});
// TODO(angelapwen): Test uploadDebugArtifacts if toUpload is empty
(0, ava_1.default)("uploadDebugArtifacts", async (t) => {
// Test that no error is thrown if artifacts list is empty.
await t.notThrowsAsync(debugArtifacts.uploadDebugArtifacts([], "rootDir", "artifactName"));
});
//# sourceMappingURL=debug-artifacts.test.js.map