mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Fix backend incident test
This commit is contained in:
20
backend/package-lock.json
generated
20
backend/package-lock.json
generated
@@ -4388,16 +4388,6 @@
|
||||
"y18n": "^4.0.0",
|
||||
"yargs-parser": "^13.1.1"
|
||||
}
|
||||
},
|
||||
"yargs-parser": {
|
||||
"version": "13.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz",
|
||||
"integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase": "^5.0.0",
|
||||
"decamelize": "^1.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7332,6 +7322,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"yargs-parser": {
|
||||
"version": "13.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz",
|
||||
"integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase": "^5.0.0",
|
||||
"decamelize": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"yargs-unparser": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz",
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
module.exports = {
|
||||
projectId: '5b279cf52c10b0309cff054a',
|
||||
monitorId: '5b279d382c10b0309cff054d',
|
||||
title: 'some title',
|
||||
incidentType: 'online',
|
||||
acknowledgedBy: '',
|
||||
acknowledgedAt: '2018-06-19T16:26:11.451Z',
|
||||
resolvedBy: '',
|
||||
|
||||
@@ -145,6 +145,7 @@ describe('Incident API', function() {
|
||||
await IntegrationService.hardDeleteBy({
|
||||
monitorId,
|
||||
});
|
||||
await IncidentService.hardDeleteBy({ projectId: projectId });
|
||||
});
|
||||
|
||||
it('should create an incident', async function() {
|
||||
@@ -153,7 +154,6 @@ describe('Incident API', function() {
|
||||
await chai
|
||||
.request('http://127.0.0.1:3010')
|
||||
.get('/api/webhooks/msteams');
|
||||
throw Error();
|
||||
} catch (e) {
|
||||
expect(e.response.status).to.eql(404);
|
||||
}
|
||||
@@ -161,7 +161,6 @@ describe('Incident API', function() {
|
||||
await chai
|
||||
.request('http://127.0.0.1:3010')
|
||||
.get('/api/webhooks/slack');
|
||||
throw Error();
|
||||
} catch (e) {
|
||||
expect(e.response.status).to.eql(404);
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[0729/132252.535:ERROR:prune_crash_reports.cc(35)] PruneCrashReportDatabase: Failed to get pending reports
|
||||
2447
probe/package-lock.json
generated
2447
probe/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user