Skip to content

Commit

Permalink
filter: fix error code check in tests
Browse files Browse the repository at this point in the history
They have PUGNEUM code now.
  • Loading branch information
matheusmoreira committed Aug 27, 2023
1 parent 831b837 commit 5768f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pug-filters/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ testCases.forEach(function(filename) {
handleFilters(JSON.parse(read(filename)), customFilters);
throw new Error('Expected ' + filename + ' to throw an exception.');
} catch (ex) {
if (!ex || !ex.code || ex.code.indexOf('PUG:') !== 0) throw ex;
if (!ex || !ex.code || ex.code.indexOf('PUGNEUM:') !== 0) throw ex;
actual = {
msg: ex.msg,
code: ex.code,
Expand Down

0 comments on commit 5768f2a

Please sign in to comment.