mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 19:59:27 +00:00
50 lines
565 B
JavaScript
50 lines
565 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* A class that represents the date of a test
|
|
*/
|
|
class TestDate extends Date {
|
|
/**
|
|
* Overwrite the default string casting implementation to format
|
|
* all dates in the British format
|
|
*
|
|
* @returns {string} The formatted date
|
|
*/
|
|
toString() {
|
|
return this.toLocaleDateString('en-GB');
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
testId;
|
|
testTemplateId;
|
|
classId;
|
|
testDate;
|
|
|
|
constructor () {
|
|
|
|
}
|
|
|
|
get class() {
|
|
|
|
}
|
|
|
|
get students() {
|
|
|
|
}
|
|
|
|
get testTemplate() {
|
|
|
|
}
|
|
|
|
calculateAverageScore() {
|
|
|
|
}
|
|
|
|
calculateGradeBoundaries() {
|
|
|
|
}
|
|
}
|
|
|
|
module.exports = Test;
|