-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Some Question Templates #182
Conversation
It was possible to obtain a question which had 2 answers that were the same, but one of them was labeled as incorrect, That is no longer possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
-
Declining Code Health: 1 findings(s) 🚩
-
Affected Hotspots: 1 files(s) 🔥
wikidataResponse, | ||
randomIndexes | ||
); | ||
let answersArray: object[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ Getting worse: Primitive Obsession
The ratio of primitive types in function arguments increases from 46.43% to 46.67%, threshold = 30.0%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -172,6 +172,21 @@ describe("Question Service - Question Generator", () => { | |||
checkAllFieldsWithoutImage(response); | |||
}) | |||
|
|||
it("should return 1 question with all correct when there are repeated answers", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ Getting worse: Code Duplication
introduced similar code in: "should return 1 question with all correct when there are repeated answers",mockWikidataSparqlRepeated
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good addition of CodeScene seen on Seminar classes and also, question templates!
No description provided.