Skip to content

Commit

Permalink
build: fix test on newer protobufjs versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Jul 2, 2024
1 parent 4c4fe7e commit b8d421d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ describe(`protobufjs-loader with webpack ${webpackVersion}`, function () {
// No include paths provided, so the 'import' fixture should
// fail to compile.
}).catch((err) => {
assert.include(
`${err}`,
"no such Type or Enum 'Bar' in Type .foo.NotBar"
);
// The exact error that comes back from protobufjs differs
// depending on the package version, so we have to just check
// the webpack-specific portion of the error message.
assert.include(`${err}`, 'ModuleBuildError: Module build failed');
done();
});
});
Expand Down

0 comments on commit b8d421d

Please sign in to comment.