Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
13
node_modules/ava/lib/assert.js
generated
vendored
13
node_modules/ava/lib/assert.js
generated
vendored
|
|
@ -8,8 +8,10 @@ import {SnapshotError, VersionMismatchError} from './snapshot-manager.js';
|
|||
|
||||
function formatDescriptorDiff(actualDescriptor, expectedDescriptor, options) {
|
||||
options = {...options, ...concordanceOptions};
|
||||
const {diffGutters} = options.theme;
|
||||
const {insertLine, deleteLine} = options.theme.string.diff;
|
||||
return {
|
||||
label: 'Difference:',
|
||||
label: `Difference (${diffGutters.actual}${deleteLine.open}actual${deleteLine.close}, ${diffGutters.expected}${insertLine.open}expected${insertLine.close}):`,
|
||||
formatted: concordance.diffDescriptors(actualDescriptor, expectedDescriptor, options),
|
||||
};
|
||||
}
|
||||
|
|
@ -48,7 +50,7 @@ export class AssertionError extends Error {
|
|||
// use the values for custom diff views
|
||||
this.raw = options.raw;
|
||||
|
||||
this.savedError = options.savedError ? options.savedError : getErrorWithLongStackTrace();
|
||||
this.savedError = options.savedError || getErrorWithLongStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -141,14 +143,17 @@ function validateExpectations(assertion, expectations, numberArgs) { // eslint-d
|
|||
case 'is':
|
||||
case 'message':
|
||||
case 'name':
|
||||
case 'code':
|
||||
case 'code': {
|
||||
continue;
|
||||
default:
|
||||
}
|
||||
|
||||
default: {
|
||||
throw new AssertionError({
|
||||
assertion,
|
||||
message: `The second argument to \`t.${assertion}()\` contains unexpected properties`,
|
||||
values: [formatWithLabel('Called with:', expectations)],
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue