more detailed default message for Tester.assertElementCount()
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -307,7 +307,10 @@ Tester.prototype.assertElementCount = function assertElementCount(selector, coun | ... | @@ -307,7 +307,10 @@ Tester.prototype.assertElementCount = function assertElementCount(selector, coun |
307 | } | 307 | } |
308 | }, selector) === count, message, { | 308 | }, selector) === count, message, { |
309 | type: "assertElementCount", | 309 | type: "assertElementCount", |
310 | standard: f("%d matching element(s) found", count), | 310 | standard: f('%d element%s matching selector "%s" found', |
311 | count, | ||
312 | count > 1 ? 's' : '', | ||
313 | selector), | ||
311 | values: { | 314 | values: { |
312 | selector: selector, | 315 | selector: selector, |
313 | count: count | 316 | count: count | ... | ... |
-
Please register or sign in to post a comment