msw 2.4.9 → 2.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,16 +174,15 @@ var getWorkerInstance = async (url, options = {}, findWorker) => {
174
174
  }
175
175
  const [existingRegistration] = mockRegistrations;
176
176
  if (existingRegistration) {
177
- return existingRegistration.update().then(() => {
178
- return [
179
- getWorkerByRegistration(
180
- existingRegistration,
181
- absoluteWorkerUrl,
182
- findWorker
183
- ),
184
- existingRegistration
185
- ];
186
- });
177
+ existingRegistration.update();
178
+ return [
179
+ getWorkerByRegistration(
180
+ existingRegistration,
181
+ absoluteWorkerUrl,
182
+ findWorker
183
+ ),
184
+ existingRegistration
185
+ ];
187
186
  }
188
187
  const registrationResult = await until(
189
188
  async () => {