Open generalibrary opened 5 years ago
{path head}\VisualGit_SE701_2019_4>npm t > VisualGit@1.0.0 test {path head}\VisualGit_SE701_2019_4 > jest PASS tests/misc/profile.test.ts PASS tests/services/popup/popup.service.test.ts PASS tests/components/authenticate/authenticate.component.test.ts PASS tests/services/user/user.service.test.ts FAIL tests/services/authentication/authentication.service.test.ts (5.016s) ● Service: Authenticate › should successfully login when credentials are correct TypeError: Cannot read property 'then' of undefined 18 | } else { 19 | const credentials = this.getCreds(username, password); > 20 | this.userService.logIn(gitHubClient, data, credentials) | ^ 21 | .then(() => { 22 | resolve("Logged in."); 23 | }) at gitHubClient.info (app/services/authentication/authentication.service.ts:20:21) at Me.jest.spyOn.mockImplementation.callback (tests/services/authentication/authentication.service.test.ts:26:13) at Promise (app/services/authentication/authentication.service.ts:15:26) at AuthenticationService.logIn (app/services/authentication/authentication.service.ts:12:16) at Object.done (tests/services/authentication/authentication.service.test.ts:31:22) Test Suites: 1 failed, 4 passed, 5 total Tests: 1 failed, 12 passed, 13 total Snapshots: 0 total Time: 8.281s Ran all test suites. npm ERR! Test failed. See above for more details.
Could you please provide