@@ -50,9 +50,9 @@ test('handles feeds without any entries', async () => {
50
50
mockHTTPSGet . __RETURN__ = '<feed xmlns="http://www.w3.org/2005/Atom" />'
51
51
await run ( )
52
52
53
- expect ( https . get ) . toBeCalledTimes ( 1 )
54
- expect ( octokit . issues . listForRepo ) . not . toBeCalled ( )
55
- expect ( octokit . issues . create ) . not . toBeCalled ( )
53
+ expect ( https . get ) . toHaveBeenCalledTimes ( 1 )
54
+ expect ( octokit . issues . listForRepo ) . not . toHaveBeenCalled ( )
55
+ expect ( octokit . issues . create ) . not . toHaveBeenCalled ( )
56
56
} )
57
57
58
58
test ( 'handles feed entries without titles' , async ( ) => {
@@ -62,9 +62,9 @@ test('handles feed entries without titles', async () => {
62
62
octokit . issues . listForRepo . mockReturnValueOnce ( { data : [ ] } )
63
63
await run ( )
64
64
65
- expect ( https . get ) . toBeCalledTimes ( 1 )
66
- expect ( octokit . issues . listForRepo ) . toBeCalledTimes ( 1 )
67
- expect ( octokit . issues . create ) . toBeCalledWith ( {
65
+ expect ( https . get ) . toHaveBeenCalledTimes ( 1 )
66
+ expect ( octokit . issues . listForRepo ) . toHaveBeenCalledTimes ( 1 )
67
+ expect ( octokit . issues . create ) . toHaveBeenCalledWith ( {
68
68
owner : 'owner' ,
69
69
repo : 'repo' ,
70
70
title : new Date ( date ) . toUTCString ( ) ,
@@ -106,7 +106,7 @@ Signed-off-by: Johannes Schindelin &lt;
[email protected] &gt;<
106
106
octokit . issues . listForRepo . mockReturnValueOnce ( { data : [ ] } )
107
107
await run ( )
108
108
109
- expect ( octokit . issues . create ) . toBeCalledWith ( {
109
+ expect ( octokit . issues . create ) . toHaveBeenCalledWith ( {
110
110
owner : 'owner' ,
111
111
repo : 'repo' ,
112
112
title : 'ci(release-tags): use newer versions of Actions' ,
0 commit comments