Closed christopherjbaker closed 7 years ago
looks good to me.
I made a mock helper: https://github.com/canjs/can-dom-mutate/blob/303cfe7ed9a1609690b15c36058b94cd18c55a27/test/test-utils.js#L31; may be more flexible to many use cases but also cannot eliminate much boilerplate.
Closing for canjs/can-test-helpers
I've noticed a fair amount of code along the lines of:
I would propose that we create a helper, to enable this functionality, rather than repeating the above code (with other checks, too) repeatedly. Perhaps a syntax similar to this?
(probably support both arrays and single values in the list)
Thoughts? Uses cases that the above won't (but should) meet? Terrible idea?