-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work with aldeed:collection2 #12
Comments
same question here - any answers? Check out this topic #14 |
Hi guys - I've been a bit swamped on other things lately; I'll try to look at this (and the other outstanding issues) shortly, but in the meantime, I love PR's. 🙂 If you have a chance to take a look at this yourself, and can supply a fix (with tests), that would be awesome! Thanks - and sorry for the delay! |
Wow, it took me a while to identify this package as the one preventing simple schema and collection2 to do their job. This does not stub (without errors):
This does stub:
And weirdly, this does stub too:
Whereas this is the documented variant (which obviously works):
Maybe it would be helpful to clarify that |
@Floriferous I've merged your PR (#18), so that should help with this issue. I'm publishing a new version later today - thanks! |
This issue should actually be reopened, #18 did not address the fact that this library still does not cooperate with |
Thanks @Floriferous - re-opening. |
In case this is still of interest to people, I opened a PR for this: #38 |
Hi,
This issue may refer to #8 , however I open a new one here since it seems to be a different issue.
I am using
aldeed:simple-schema
together withaldeed:collection2
. Here is a piece of test I created:UserState
collection has been stubbed, and the idea of the test is that theuserState
object in the stub collection should have been created and cleaned.However it is not, and userState equals {userId:"foobar"} where it should equal something similar to {userId:"foobar", someAutoGeneratedValue: {...} }.
It seems that
collection2
is not applied on the stubbed collection. When I don't stub the collection, my test is passing assimple-schema
clean
method is applied thanks tocollection2
.Is that an expected behaviour ? The problem is that I use
collection2
to auto generate some value. I can't applyclean
manually to my object inside my test, since I am testing the method that wraps theinsert
call.Thanks !
The text was updated successfully, but these errors were encountered: