Skip to content

Instantly share code, notes, and snippets.

Morgan Intrator morgs32

Block or report user

Report or block morgs32

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@morgs32
morgs32 / until.js
Created Jul 24, 2017 — forked from matthieuprat/ README.md
Until operator for Enzyme's shallow wrapper
View until.js
export default function until(selector, {context} = this.options) {
if (this.isEmptyRender() || typeof this.node.type === 'string')
return this
const instance = this.instance()
if (instance.getChildContext) {
context = {
...context,
...instance.getChildContext(),
}
You can’t perform that action at this time.