We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e2aab commit 92ae391Copy full SHA for 92ae391
packages/wrangler/e2e/unenv-preset/worker/index.ts
@@ -157,9 +157,17 @@ export const WorkerdTests: Record<string, () => void> = {
157
reject(error);
158
return;
159
}
160
- assert.ok(Array.isArray(results[0]));
161
- assert.strictEqual(results.length, 1);
162
- assert.ok(results[0][0].startsWith("v=spf1"));
+ assert.ok(Array.isArray(results));
+ assert.ok(results.length >= 1);
+ let foundSpf = false;
163
+ for (const result of results) {
164
+ assert.ok(Array.isArray(result));
165
+ if (result.length >= 1) {
166
+ assert.strictEqual(typeof result[0], "string");
167
+ foundSpf ||= result[0].startsWith("v=spf1");
168
+ }
169
170
+ assert.ok(foundSpf);
171
resolve(null);
172
});
173
0 commit comments