Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 1.17.1 to 1.18.2 (#384)
Browse files Browse the repository at this point in the history
Bumps [prettier](https://github.com/prettier/prettier) from 1.17.1 to 1.18.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@1.17.1...1.18.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
  • Loading branch information
dependabot-preview[bot] authored and Turbo87 committed Jun 14, 2019
1 parent 1a925b8 commit 10bda55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
20 changes: 5 additions & 15 deletions lib/assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ export default class DOMAssertions {

if (value instanceof RegExp) {
let result = value.test(actualValue);
let expected = `Element ${
this.targetDescription
} has attribute "${name}" with value matching ${value}`;
let expected = `Element ${this.targetDescription} has attribute "${name}" with value matching ${value}`;
let actual =
actualValue === null
? `Element ${this.targetDescription} does not have attribute "${name}"`
Expand Down Expand Up @@ -852,9 +850,7 @@ export default class DOMAssertions {
if (!message) {
message = singleElement
? `The element ${selectedByPart} also matches the selector ${compareSelector}.`
: `${targets} elements, selected by ${
this.target
}, also match the selector ${compareSelector}.`;
: `${targets} elements, selected by ${this.target}, also match the selector ${compareSelector}.`;
}
actual = expected = message;
this.pushResult({ result: true, actual, expected, message });
Expand All @@ -864,9 +860,7 @@ export default class DOMAssertions {
if (!message) {
message = singleElement
? `The element ${selectedByPart} did not also match the selector ${compareSelector}.`
: `${matchFailures} out of ${targets} elements selected by ${
this.target
} did not also match the selector ${compareSelector}.`;
: `${matchFailures} out of ${targets} elements selected by ${this.target} did not also match the selector ${compareSelector}.`;
}
actual = singleElement ? message : `${difference} elements matched ${compareSelector}.`;
expected = singleElement
Expand Down Expand Up @@ -899,9 +893,7 @@ export default class DOMAssertions {
if (!message) {
message = singleElement
? `The element ${selectedByPart} did not also match the selector ${compareSelector}.`
: `${targets} elements, selected by ${
this.target
}, did not also match the selector ${compareSelector}.`;
: `${targets} elements, selected by ${this.target}, did not also match the selector ${compareSelector}.`;
}
actual = expected = message;
this.pushResult({ result: true, actual, expected, message });
Expand All @@ -911,9 +903,7 @@ export default class DOMAssertions {
if (!message) {
message = singleElement
? `The element ${selectedByPart} must not also match the selector ${compareSelector}.`
: `${difference} elements out of ${targets}, selected by ${
this.target
}, must not also match the selector ${compareSelector}.`;
: `${difference} elements out of ${targets}, selected by ${this.target}, must not also match the selector ${compareSelector}.`;
}
actual = singleElement
? `The element ${selectedByPart} matched ${compareSelector}.`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"jest": "^24.8.0",
"lerna-changelog": "^0.8.0",
"loader.js": "^4.2.3",
"prettier": "1.17.1",
"prettier": "1.18.2",
"rollup": "^1.15.4",
"rollup-plugin-typescript2": "^0.21.1",
"ts-jest": "^24.0.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9169,10 +9169,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@1.17.1:
version "1.17.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db"
integrity sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg==
prettier@1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==

pretty-format@^24.8.0:
version "24.8.0"
Expand Down

0 comments on commit 10bda55

Please sign in to comment.