I\'d like to unit test a service, however, when running the test, I get the following error:
Uncaught (in promise) SyntaxError: Unexpected token o in
No need to parse data.
Usually when you encounter this error, it means you do not need to parse your data.
Try using the 'token' directly.
For sanity, print your data in your console. (you can also Stringify it and print it see what it gives you)