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:
Yiling Lu
2014-04-03 16:50:01 -07:00
committed by Caitlin Potter
parent 34d0740350
commit 9682bd0c4e

View File

@@ -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*$/);
});
```