rubric item tests

This commit is contained in:
2024-08-21 14:55:36 -06:00
parent aa85f80a4c
commit 0d79299072
4 changed files with 107 additions and 0 deletions

View File

@@ -2,3 +2,9 @@ export interface RubricItem {
label: string;
points: number;
}
export const rubricItemIsExtraCredit = (item: RubricItem) => {
const extraCredit = '(extra credit)';
return item.label.toLowerCase().includes(extraCredit.toLowerCase());
}