mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
docs(guide/tutorial): make added assertion one which will actually work.
Update the by.binding usage to make the test case work. Closes #6987
This commit is contained in:
committed by
Caitlin Potter
parent
34d0740350
commit
9682bd0c4e
@@ -179,7 +179,7 @@ ngBindTemplate} directives, which are invisible to the user while the page is lo
|
||||
expect(statusElement.getText()).toMatch(/Current filter: nexus\s*$/);
|
||||
|
||||
//alternative version of the last assertion that tests just the value of the binding
|
||||
expect(statusElement.element(by.binding('query'))).toBe('nexus');
|
||||
expect(element(by.binding('query')).getText()).toMatch(/Current filter: nexus\s*$/);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user