Closed moelrobii closed 6 years ago
I will be working to fix it
Funny thing is when I try to run the test locally, everything works without anything sort of error But when I kick start an other build with the same branch and same commit https://travis-ci.org/AminoJS/Amino.JS/builds/439469084 🤔
Could it be that the User we are loading does not have any Userblogs? Which is impossible to be Honest da Travis itself a Blog creates. But you know it’s a thought.
@moelrobii
Could it be that the User we are loading does not have any Userblobs
Haven’t really taken that as consideration 🤣
Well, should we just make a default return value as null
and inside the test case, accept both array and null?
There is a thing already in Place that does this. :)
Check modules/getUserBlogs.js
Ya, thanks @moelrobii
https://github.com/AminoJS/Amino.JS/blob/37e5e544b9151f223b951642ab632e2d600ef9ba/modules/getUserBlogs.js#L29
😂
So now we just need to make the test case to also accept null
as well 👍
Closed. Fixed with PR #41 and commit Hash bf34a278f0751bd66d0a2beae70df38d21fe186b
Describe the bug We noticed that a Testcase is failing in our testing for Release 3.0. I think this is due to a backend change in Narvii's Systems.
To Reproduce Login a client with the AminoJS Libary, then call the Function:
<AminoJS>.getUserBlogs(comID, userID, count);
OR start the Testcases withnpm test
The Bug should then be visible there.
Expected behavior The
<calledVariable>.blogs
should be an array. The testing system says that it's not.Screenshots Here is the testcase result with another account:
And here is the testcase with the testing Account and more debug logs. (JSON in text under screenshot)
Desktop (please complete the following information):