Skip to content

Commit

Permalink
fixup: format
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Feb 14, 2024
1 parent 2af0ea5 commit c3cc40f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions packages/pass-style/src/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export const checkValidPassableErrorPropertyDesc = (
}
}
return (
reject && reject(X`Passable Error has extra unpassed property ${q(propName)}`)
reject &&
reject(X`Passable Error has extra unpassed property ${q(propName)}`)
);
};
harden(checkValidPassableErrorPropertyDesc);
Expand Down Expand Up @@ -178,7 +179,9 @@ const checkValidPassableError = (
if (!('message' in descs)) {
return (
reject &&
reject(X`Passable Error must have an own "message" string property: ${candidate}`)
reject(
X`Passable Error must have an own "message" string property: ${candidate}`,
)
);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/pass-style/test/test-passStyleOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ test('some passStyleOf rejections', t => {
delete hairlessError[k];
}
t.throws(() => passStyleOf(harden(hairlessError)), {
message: 'Passable Error must have an own "message" string property: "[Error: ]"',
message:
'Passable Error must have an own "message" string property: "[Error: ]"',
});

t.throws(() => passStyleOf(Symbol('unique')), {
Expand Down Expand Up @@ -419,8 +420,7 @@ test('Unexpected stack on errors', t => {
Object.freeze(err);

t.throws(() => passStyleOf(err), {
message:
'Passable Error "stack" own property must be a string: {}',
message: 'Passable Error "stack" own property must be a string: {}',
});
err.stack.foo = 42;
});
Expand Down

0 comments on commit c3cc40f

Please sign in to comment.