Add utilities unit tests
This commit is contained in:
parent
ff7a29dd72
commit
484a72c924
9 changed files with 92 additions and 17 deletions
5
lib/debug-artifacts.test.js
generated
5
lib/debug-artifacts.test.js
generated
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue