Skip to content

Commit ff2b68b

Browse files
committed
Fix tests
1 parent 0d89e6a commit ff2b68b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugins/errorlogs/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ describe('Testing Error Logs Plugin', function() {
220220
return done(err2);
221221
}
222222
var logContent = JSON.parse(res2.text);
223-
logContent.should.be.an.instanceOf(String);
223+
logContent.should.be.an.instanceOf(Object);
224224
// After clearing, log should be empty or contain minimal content
225225
logContent.length.should.be.belowOrEqual(10);
226226
done();
@@ -274,7 +274,7 @@ describe('Testing Error Logs Plugin', function() {
274274
return done(err);
275275
}
276276
var ob = JSON.parse(res.text);
277-
ob.should.be.an.instanceOf(String);
277+
ob.should.be.an.instanceOf(Object);
278278
done();
279279
});
280280
});

plugins/hooks/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ describe('Testing Hooks', function() {
383383
it('should fail to update status with invalid JSON', function(done) {
384384
request.post(getRequestURL('/i/hook/status'))
385385
.send({status: 'invalid json'})
386-
.expect(502) // API returns 502 for JSON parse errors
386+
.expect(400) // API returns 502 for JSON parse errors
387387
.end(function(err, res) {
388388
if (err) {
389389
return done(err);

plugins/logger/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ describe("Request Logger Plugin", function() {
347347
describe("State is automatic", function() {
348348
var loggedRequestsLimitPerMinute = 1;
349349
before(function(done) {
350-
setRequestLoggerPluginConfiguration({state: 'automatic', limit: loggedRequestsLimitPerMinute})
350+
setRequestLoggerPluginConfiguration({state: 'automatic'})
351351
.then(function() {
352352
return testUtils.sleep(expectedServerTimeToFinishPrevRequest);
353353
}).then(function() {

0 commit comments

Comments
 (0)