We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97f0d18 + 714638c commit 0fc41e9Copy full SHA for 0fc41e9
plugins/hooks/tests.js
@@ -136,6 +136,16 @@ describe('Testing Hooks', function() {
136
done();
137
});
138
139
+ it('should fail to fetch hook details with invalid hook ID', function(done) {
140
+ const invalidHookId = "invalid-id"; // Invalid hook ID
141
+ request.get(getRequestURL('/o/hook/list') + '&id=' + invalidHookId)
142
+ .expect(404) // Not found error for invalid hook ID
143
+ .end(function(err, res) {
144
+ // Test response
145
+ res.body.should.have.property('hooksList').which.is.an.Array().and.have.lengthOf(0);
146
+ done();
147
+ });
148
149
150
151
0 commit comments