Skip to content

Commit

Permalink
fix: [test] - missing header in the order list is not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Apr 6, 2023
1 parent 4dbc351 commit dfa3124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/header-generator/generation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ describe('Generation tests', () => {
const log = `${userAgent}\n${browser}\n${inspect(order)}\n${inspect(headers)}`;
if (newIndex === -1) {
// If the header isn't in the order list, throw an error
throw new Error(`Missing entry in order array\n${log}`);
// throw new Error(`Missing entry in order array\n${log}`);
continue;
} else if (newIndex < index) {
// If the index of the header is earlier than the remembered index then throw an error. Example:
// given order:
Expand Down

0 comments on commit dfa3124

Please sign in to comment.