You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2021. It is now read-only.
I'm trying to use sails-memory and Barrels to get some fixtures in my tests.
I have created a model called Source and I got a fixture with one source. I can see that the source is in the sails memory, so I want to get the data to test it. I do :
I have a similar error when doing tests. After updating a model, I have a callback run a get() on the route but I receive an error: TypeError: Cannot read property 'getPKField' of undefined
If I run the get() before on it's own, there is no problem. Both are identical routes. Not convinced it's sails-memory's fault but I'm not sure where to go from here.
So, I just randomly "fixed" this, but doesn't make much sense. I was running the callback via supertest's expect() callback. The call that was running it actually had a failing test that wasn't being reported. Once I fixed that, the callback runs as expected.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi !
I'm trying to use sails-memory and Barrels to get some fixtures in my tests.
I have created a model called Source and I got a fixture with one source. I can see that the source is in the sails memory, so I want to get the data to test it. I do :
And I get this Error :
The text was updated successfully, but these errors were encountered: