From d53a787f0d0d5aacb65ef98c9e819e148287ab2c Mon Sep 17 00:00:00 2001 From: Yiling Lu Date: Thu, 3 Apr 2014 16:18:33 -0700 Subject: [PATCH] docs(tutorial): change regexp so that assertion works Need to remove this single space for the regex to work here. Apparently `getText()` is trimming the text content or something, because there is no good reason why that space should not be there. Closes #6985 --- docs/content/tutorial/step_03.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_03.ngdoc b/docs/content/tutorial/step_03.ngdoc index d3148fac4..0dd3473ca 100644 --- a/docs/content/tutorial/step_03.ngdoc +++ b/docs/content/tutorial/step_03.ngdoc @@ -172,7 +172,7 @@ ngBindTemplate} directives, which are invisible to the user while the page is lo it('should display the current filter value within an element with id "status"', function() { var statusElement = element(by.id('status')); - expect(statusElement.getText()).toMatch(/Current filter: \s*$/); + expect(statusElement.getText()).toMatch(/Current filter:\s*$/); element(by.model('query')).sendKeys('nexus');