(args)
| 170 | } |
| 171 | |
| 172 | removeInjector(args) { |
| 173 | const { injectionId, injectorInstance } = args; |
| 174 | const registration = this.getRegistration({ injectionId }); |
| 175 | const injection = this.findInjection({ registration, injectorInstance }); |
| 176 | |
| 177 | invariant( |
| 178 | !!injection, |
| 179 | `Trying to remove an injector which has not been registered`); |
| 180 | |
| 181 | registration.injections = without(injection)(registration.injections); |
| 182 | this.runInjections({ registration }); |
| 183 | |
| 184 | this.clearRegistrationIfEmpty({ registration }); |
| 185 | } |
| 186 | |
| 187 | render() { |
| 188 | return ( |
no test coverage detected