Skip to content

Commit

Permalink
prettier --write '**/*.{js,md,json}'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 18, 2020
1 parent c9ab2c5 commit 1f7b513
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 21 deletions.
10 changes: 2 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"name": "unexpected",
"authors": [
"Sune Simonsen <sune@we-knowhow.dk>"
],
"authors": ["Sune Simonsen <sune@we-knowhow.dk>"],
"description": "The extensible BDD assertion toolkit",
"main": "unexpected.js",
"moduleType": [
"amd",
"globals",
"node"
],
"moduleType": ["amd", "globals", "node"],
"keywords": [
"assert",
"expect",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"spec_dir": "externaltests",
"spec_files": [
"forgotToReturnPendingPromiseFromFailingItBlock.spec.js"
]
"spec_files": ["forgotToReturnPendingPromiseFromFailingItBlock.spec.js"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"spec_dir": "externaltests",
"spec_files": [
"forgotToReturnPendingPromiseFromSuccessfulItBlock.spec.js"
]
"spec_files": ["forgotToReturnPendingPromiseFromSuccessfulItBlock.spec.js"]
}
4 changes: 1 addition & 3 deletions externaltests/notToErrorCaughtError.jasmine.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"spec_dir": "externaltests",
"spec_files": [
"notToErrorCaughtError.spec.js"
]
"spec_files": ["notToErrorCaughtError.spec.js"]
}
5 changes: 3 additions & 2 deletions lib/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,9 @@ module.exports = (expect) => {
)
);
} else if (expect.flags.only) {
const excessItems = Array.prototype.filter.call(subject, (item) =>
args.some((arg) => equal(item, arg))
const excessItems = Array.prototype.filter.call(
subject,
(item) => args.some((arg) => equal(item, arg))
);
const missingItems = args.filter(
(arg) =>
Expand Down
5 changes: 4 additions & 1 deletion lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,10 @@ module.exports = function (expect) {

const actualElements = utils.duplicateArrayLikeUsingType(actual, this);
const actualKeys = this.getKeys(actual);
const expectedElements = utils.duplicateArrayLikeUsingType(expected, this);
const expectedElements = utils.duplicateArrayLikeUsingType(
expected,
this
);
const expectedKeys = this.getKeys(expected);
const nonNumericalKeysAndSymbols =
!this.numericalPropertiesOnly &&
Expand Down
2 changes: 1 addition & 1 deletion test/external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if (typeof process === 'object') {
'Error: should fail: You have created a promise that was not returned from the it block'
);
expect(err, 'to satisfy', {
code: expect.it('to be greater than', 0)
code: expect.it('to be greater than', 0),
});
});
});
Expand Down

0 comments on commit 1f7b513

Please sign in to comment.