I've got a few lines uncovered but I can't seem to get coverage. Tried all sorts of testing with no luck.
It's my 3 if statements below.
No idea who to fix this.
const user = getState('user');
if (user) {
if (user.token) {
axios.defaults.headers.common.Authorization = `Bearer ${user.token}`;
}
if (user.account) {
axios.defaults.headers.common['X-Account-Id'] = user.account.id;
}
}
Aucun commentaire:
Enregistrer un commentaire