Skip to content

Commit c7eddcb

Browse files
committed
Fixed tests
1 parent 0c4a5bf commit c7eddcb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/action.spec.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ describe("nodejs-upload-asset", () => {
3838
process.env.GITHUB_TOKEN = "abcd";
3939
uploadReleaseAssetMock.mockReturnValue({
4040
data: {
41-
value: {
42-
browser_download_url: "download_url",
43-
id: 1,
44-
}
41+
browser_download_url: "download_url",
42+
id: 1,
4543
},
4644
});
4745
return testSubject().then(() => {
@@ -62,10 +60,8 @@ describe("nodejs-upload-asset", () => {
6260
process.env.GITHUB_TOKEN = "abcd";
6361
uploadReleaseAssetMock.mockReturnValue({
6462
data: {
65-
value: {
66-
browser_download_url: "download_url",
67-
id: 1,
68-
}
63+
browser_download_url: "download_url",
64+
id: 1,
6965
},
7066
});
7167
return testSubject().then(() => {

0 commit comments

Comments
 (0)