diff --git a/packages/pass-style/src/error.js b/packages/pass-style/src/error.js index 2e25fd5c9f..aacd46fe27 100644 --- a/packages/pass-style/src/error.js +++ b/packages/pass-style/src/error.js @@ -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); @@ -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}`, + ) ); } diff --git a/packages/pass-style/test/test-passStyleOf.js b/packages/pass-style/test/test-passStyleOf.js index 85667ee87a..0560223e55 100644 --- a/packages/pass-style/test/test-passStyleOf.js +++ b/packages/pass-style/test/test-passStyleOf.js @@ -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')), { @@ -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; });