error: ```
● Testing the call: getSeason › Returns a that contains the Spanish Grand Prix, celebrated in Montmeló, Spain on 2014-05-11
TypeError: Cannot read properties of undefined (reading 'circuitId')
8 |
9 | public constructor(circuitParser: any) {
> 10 | this.circuitId = circuitParser.circuitId;
| ^
11 | this.url = circuitParser.url;
12 | this.circuitName = circuitParser.circuitName;
13 | this.location = new LocationFinder(circuitParser.LocationFinder);
at new Circuit (typings/circuits/circuit.ts:10:36)
at new Race (typings/races/races.ts:19:24)
at typings/seasons/season.ts:29:34
at Function.map (node_modules/underscore/underscore-node-f-pre.js:1335:22)
at new Season (typings/seasons/season.ts:28:11)
at src/client/seasons.ts:24:32
at src/utils/request.ts:9:13
● Testing the call: getSeason › Returns a that contains the Spanish Grand Prix, celebrated in Montmeló, Spain on 2014-05-11
thrown: "Exceeded timeout of 10000 ms for a test while waiting for `done()` to be called.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
6 |
7 | describe("Testing the call: getSeason", function() {
> 8 | it("Returns a that contains the Spanish Grand Prix, celebrated in Montmeló, Spain on 2014-05-11", (done: any) => {
| ^
9 | ergastClient.getSeason(2014, (err: any, season: any) => {
10 | let race = season.getRace(5);
11 | expect(race.raceName).toEqual("Spanish Grand Prix");
at test/f1.test.ts:8:5
at Object.<anonymous> (test/f1.test.ts:7:1)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 13.079 s, estimated 14 s
Ran all test suites.