[T] Test GPA calculations
This commit is contained in:
@@ -6,6 +6,7 @@ import Constants from '@/constants';
|
|||||||
import JsonUtils from '@/utils/json-utils';
|
import JsonUtils from '@/utils/json-utils';
|
||||||
import pWaitFor from 'p-wait-for';
|
import pWaitFor from 'p-wait-for';
|
||||||
import {HttpUtils} from '@/utils/http-utils';
|
import {HttpUtils} from '@/utils/http-utils';
|
||||||
|
import {GPAUtils} from '@/utils/gpa-utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Objects of this interface represent assignment grades.
|
* Objects of this interface represent assignment grades.
|
||||||
@@ -108,6 +109,9 @@ export default class App extends Vue
|
|||||||
// Save courses
|
// Save courses
|
||||||
this.courses = response.data;
|
this.courses = response.data;
|
||||||
|
|
||||||
|
// TODO: Delete this
|
||||||
|
console.log(GPAUtils.getGPA(this.courses));
|
||||||
|
|
||||||
// Load assignments
|
// Load assignments
|
||||||
this.loadAssignments();
|
this.loadAssignments();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user