mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
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
This commit is contained in:
committed by
Caitlin Potter
parent
20b22f1f7e
commit
8b0b7ca65a
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user