@@ -50,8 +50,9 @@ describe('hook.test.js', function () {
50
50
it ( 'should return a hook' , function * ( ) {
51
51
var hook = yield client . thunk . hooks . get ( { id : client . id , hook_id : hookId } ) ;
52
52
hook . id . should . equal ( hookId ) ;
53
- hook . should . have . keys ( 'id' , 'url' , 'created_at' , 'project_id' ,
54
- 'push_events' , 'issues_events' , 'merge_requests_events' , 'tag_push_events' ) ;
53
+ hook . should . have . keys ( 'id' , 'url' , 'created_at' , 'project_id' , 'push_events' ,
54
+ 'issues_events' , 'merge_requests_events' , 'tag_push_events' , 'note_events' ,
55
+ 'build_events' , 'enable_ssl_verification' ) ;
55
56
hook . push_events . should . be . a . Boolean ;
56
57
} ) ;
57
58
} ) ;
@@ -62,7 +63,9 @@ describe('hook.test.js', function () {
62
63
hooks . length . should . above ( 0 ) ;
63
64
var hook = hooks [ 0 ] ;
64
65
hook . should . have . keys ( 'id' , 'url' , 'created_at' , 'project_id' ,
65
- 'push_events' , 'issues_events' , 'merge_requests_events' , 'tag_push_events' ) ;
66
+ 'push_events' , 'issues_events' , 'merge_requests_events' ,
67
+ 'tag_push_events' , 'note_events' , 'build_events' ,
68
+ 'enable_ssl_verification' ) ;
66
69
} ) ;
67
70
} ) ;
68
71
@@ -104,8 +107,11 @@ describe('hook.test.js', function () {
104
107
105
108
yield client . thunk . hooks . remove ( { id : client . id , hook_id : hook . id } ) ;
106
109
107
- var hook = yield client . thunk . hooks . get ( { id : client . id , hook_id : hook . id } ) ;
108
- should . not . exist ( hook ) ;
110
+ try {
111
+ var hook = yield client . thunk . hooks . get ( { id : client . id , hook_id : hook . id } ) ;
112
+ } catch ( err ) {
113
+ err . name . should . equal ( 'Gitlab404Error' ) ;
114
+ }
109
115
} ) ;
110
116
} ) ;
111
117
} ) ;
0 commit comments