Skip to content

Commit

Permalink
🐛 attempting to fix a few edge case issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohland committed Nov 16, 2023
1 parent b5a6a5c commit 72aaacf
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 116 deletions.
156 changes: 78 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "barky",
"version": "1.1.1",
"version": "1.1.2",
"description": "A simple cloud services watchdog with digest notification support & no external dependencies",
"homepage": "https://github.com/Rohland/barky#readme",
"main": "dist/cli.js",
Expand All @@ -16,17 +16,17 @@
"author": "",
"license": "MIT",
"dependencies": {
"axios": "^1.6.0",
"axios": "^1.6.2",
"dotenv": "^16.3.1",
"knex": "^3.0.1",
"mysql2": "^3.6.2",
"mysql2": "^3.6.3",
"sqlite3": "^5.1.6",
"tslib": "^2.6.2",
"yaml": "^2.3.3",
"yaml": "^2.3.4",
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.2",
"@types/jest": "^29.5.7",
"@types/node": "^20.8.10",
Expand Down
13 changes: 12 additions & 1 deletion src/evaluation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe("evaluation", () => {
const results = await evaluateType(type);

// assert
expect(results.length).toEqual(2);
expect(results.length).toEqual(3);
expect(results[0]).toMatchObject({
type: "web",
label: "monitor",
Expand All @@ -171,6 +171,17 @@ describe("evaluation", () => {
alert: null,
success: true
});
expect(results[2]).toMatchObject({
type: "web",
label: "monitor",
identifier: "test",
result: 1,
timeTaken: 0,
resultMsg: "Skipped",
app: app,
alert: null,
success: true
});
});
});
});
Expand Down
Loading

0 comments on commit 72aaacf

Please sign in to comment.