Skip to content

Commit

Permalink
Fix suggest logic (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpont authored Aug 7, 2024
1 parent 3e8cc65 commit b35c4f8
Show file tree
Hide file tree
Showing 38 changed files with 2,147 additions and 853 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Telegram bot for selecting movies to watch together.
- `/vote <movie number>` - Vote for a suggested movie.
- `/list` - Show the list of suggested movies.
- `/watched <movie number>` - Mark a movie as watched.
- `/random` - Show a random movie from list.
- `/veto <movie number>` - Remove movie from random.

## Development
Expand Down
2 changes: 1 addition & 1 deletion coverage/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{"total": {"lines":{"total":176,"covered":164,"skipped":0,"pct":93.18},"statements":{"total":189,"covered":177,"skipped":0,"pct":93.65},"functions":{"total":46,"covered":46,"skipped":0,"pct":100},"branches":{"total":61,"covered":47,"skipped":0,"pct":77.04},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/controllers/bot.ts": {"lines":{"total":120,"covered":108,"skipped":0,"pct":90},"functions":{"total":30,"covered":30,"skipped":0,"pct":100},"statements":{"total":130,"covered":118,"skipped":0,"pct":90.76},"branches":{"total":55,"covered":43,"skipped":0,"pct":78.18}}
{"total": {"lines":{"total":197,"covered":194,"skipped":0,"pct":98.47},"statements":{"total":217,"covered":214,"skipped":0,"pct":98.61},"functions":{"total":67,"covered":67,"skipped":0,"pct":100},"branches":{"total":43,"covered":35,"skipped":0,"pct":81.39},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/controllers/bot.ts": {"lines":{"total":80,"covered":77,"skipped":0,"pct":96.25},"functions":{"total":31,"covered":31,"skipped":0,"pct":100},"statements":{"total":90,"covered":87,"skipped":0,"pct":96.66},"branches":{"total":13,"covered":9,"skipped":0,"pct":69.23}}
,"/Users/gpont/Documents/watch_together/src/controllers/checkers.ts": {"lines":{"total":36,"covered":36,"skipped":0,"pct":100},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":41,"covered":41,"skipped":0,"pct":100},"branches":{"total":16,"covered":15,"skipped":0,"pct":93.75}}
,"/Users/gpont/Documents/watch_together/src/controllers/helpers.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/dbController/database.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/dbController/index.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/errorHandler/CheckError.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/errorHandler/handleCheckErrors.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/errorHandler/index.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/models/index.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/models/movies/index.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/gpont/Documents/watch_together/src/models/movies/model.ts": {"lines":{"total":37,"covered":37,"skipped":0,"pct":100},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":37,"covered":37,"skipped":0,"pct":100},"branches":{"total":6,"covered":4,"skipped":0,"pct":66.66}}
,"/Users/gpont/Documents/watch_together/src/models/movies/model.ts": {"lines":{"total":47,"covered":47,"skipped":0,"pct":100},"functions":{"total":17,"covered":17,"skipped":0,"pct":100},"statements":{"total":48,"covered":48,"skipped":0,"pct":100},"branches":{"total":12,"covered":9,"skipped":0,"pct":75}}
}
Loading

0 comments on commit b35c4f8

Please sign in to comment.