Skip to content

Commit 932b849

Browse files
committed
added test cases
1 parent 836a457 commit 932b849

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

events/code_commit_test.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ func TestCodeCommitReference(t *testing.T) {
2828
"ref": "refs/heads/master",
2929
"created": true
3030
}
31+
`),
32+
},
33+
{
34+
Name: "Deleted CodeCommitReference",
35+
Input: []byte(`
36+
{
37+
"commit": "5c4ef1049f1d27deadbeeff313e0730018be182b",
38+
"ref": "refs/heads/master",
39+
"deleted": true
40+
}
3141
`),
3242
},
3343
}
@@ -62,7 +72,12 @@ func TestCodeCommitCodeCommit(t *testing.T) {
6272
"commit": "5c4ef1049f1d27deadbeeff313e0730018be182b",
6373
"ref": "refs/heads/master",
6474
"created": true
65-
}
75+
},
76+
{
77+
"commit": "5c4ef1049f1d27deadbeeff313e0730018be182b",
78+
"ref": "refs/heads/master",
79+
"deleted": true
80+
}
6681
]
6782
}
6883
`),

0 commit comments

Comments
 (0)