mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
change repeater count expectation wording
This commit is contained in:
parent
fe03ea0d1f
commit
f6a405c283
2 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ angular.scenario.dsl.expect = {
|
|||
return {
|
||||
count: {
|
||||
toEqual: function(number) {
|
||||
$scenario.addStep("Expect to see " + number + " items repeated with selector '" + selector + "'", function(done) {
|
||||
$scenario.addStep("Expect that there are " + number + " items in Repeater with selector '" + selector + "'", function(done) {
|
||||
var items = this.testDocument.find(selector);
|
||||
if (items.length != number) {
|
||||
this.result.fail("Expected " + number + " but was " + items.length);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ describe("DSL", function() {
|
|||
describe('repeater', function() {
|
||||
it('should check the count of repeated elements', function() {
|
||||
dslExpect.repeater('.repeater-row').count.toEqual(2);
|
||||
expect(lastStep.name).toEqual("Expect to see 2 items repeated with selector '.repeater-row'");
|
||||
expect(lastStep.name).toEqual("Expect that there are 2 items in Repeater with selector '.repeater-row'");
|
||||
var html = "<div class='repeater-row'>a</div><div class='repeater-row'>b</div>";
|
||||
executeStep(lastStep, html);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue