Using nock and Jasmine to test a helper method #2477
Unanswered
richlewis14
asked this question in
Q&A
Replies: 1 comment 5 replies
-
@richlewis14 If you're using the native |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Just come across nock (sorry), so first time using it
Im looking to test the following method but my test fails with
Expected spy storeDeviceId to have been called with: [ '1234-5678' ] but it was never called.
I doubt this is a nock issue, more user error with the test, but any assistance would be appreciated
Method to test
Unit test
Just wondering if anyone had any pointers or let me know what im possibly doing wrong?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions