Arquisoft / dechat_en2a

Dechat EN2A
https://arquisoft.github.io/dechat_en2a
MIT License
8 stars 7 forks source link

Bug e2e solid.auth.service #74

Closed pxstrana closed 5 years ago

pxstrana commented 5 years ago

Trying to run the test with ng e2e, shows this error. I´ve been trying to solve it and I don´t have any solution for now.

ERROR in src/app/services/solid.auth.service.ts(37,5): error TS2322: Type 'Observable<{}>' is not assignable to type 'Observable<SolidSessio
n>'.
  Type '{}' is missing the following properties from type 'SolidSession': accessToken, clientId, idToken, sessionKey, webId
pxstrana commented 5 years ago

In order to run the app and the tests without errors, you can change in the solid.auth.service.ts file the next part: export class AuthService { session; fechInit = { method: 'PATCH', headers: { 'Content-Type': 'application/sparql-update', }, body: '', };

(Remove the :Observable<SolidSession>)

pxstrana commented 5 years ago

You can also change SolidSession to Object ¯\_(ツ)_/¯