Closed gr2m closed 8 years ago
Was going to pick this one up but looks like it's already done?
I'm seeing test successful account.signIn(options)
at https://github.com/hoodiehq/hoodie-client-account/blob/master/tests/unit/sign-in-test.js#L38 passes fine.
Should this be closed or am I misunderstanding the task?
yeah the test is wrong. signIn
should not resolve with accountProperties
, but with sessionProperties
. Meaning that accountProperties.id
should be sessionProperties.account.id
and accountProperties.username
should be sessionProperties.account.username
.
Sorry this is really confusing. But does it make sense now?
Ok that's clear. I'll leave this for now, but I can pick it up when I'm done with https://github.com/hoodiehq/hoodie-client/pull/33
currently resolves iwth
But should resolve with
As showin in the README: https://github.com/hoodiehq/hoodie-client-account#accountsignin
I guess the way we serialise at the moment is not up to date with the latest spec, so other methods / tests might be needed to be adapted as well