2022-03-03 09:35:26 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`modules/platform/azure/azure-helper getAzureBranchObj should get the branch object 1`] = `
|
2022-08-16 12:22:29 +00:00
|
|
|
{
|
2022-03-03 09:35:26 +00:00
|
|
|
"name": "refs/heads/branchName",
|
|
|
|
"oldObjectId": "132",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`modules/platform/azure/azure-helper getAzureBranchObj should get the branch object when ref missing 1`] = `
|
2022-08-16 12:22:29 +00:00
|
|
|
{
|
2022-03-03 09:35:26 +00:00
|
|
|
"name": "refs/heads/branchName",
|
|
|
|
"oldObjectId": "0000000000000000000000000000000000000000",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`modules/platform/azure/azure-helper getCommitDetails should get commit details 1`] = `
|
2022-08-16 12:22:29 +00:00
|
|
|
{
|
|
|
|
"parents": [
|
2022-03-03 09:35:26 +00:00
|
|
|
"123456",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-08-16 12:22:29 +00:00
|
|
|
exports[`modules/platform/azure/azure-helper getFile should return the file content because it is not a json 1`] = `"{"hello"= "test"}"`;
|
2022-03-03 09:35:26 +00:00
|
|
|
|
|
|
|
exports[`modules/platform/azure/azure-helper getRef should get the ref with full ref name 1`] = `
|
2022-08-16 12:22:29 +00:00
|
|
|
[
|
|
|
|
{
|
2022-03-03 09:35:26 +00:00
|
|
|
"objectId": "132",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`modules/platform/azure/azure-helper getRef should get the ref with short ref name 1`] = `
|
2022-08-16 12:22:29 +00:00
|
|
|
[
|
|
|
|
{
|
2022-03-03 09:35:26 +00:00
|
|
|
"objectId": 132,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
`;
|