mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 00:09:01 +08:00
change repeater count expectation wording
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user