Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 81d9193

Browse files
docs(guide/module): add protractor tests
1 parent 9987a60 commit 81d9193

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/content/guide/module.ngdoc

+14-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ I'm in a hurry. How do I get a Hello World module working?
4545
};
4646
});
4747
</file>
48+
49+
<file name="protractor.js" type="protractor">
50+
it('should add Hello to the name', function() {
51+
expect(element(by.binding("{{ 'World' | greet }}")).getText()).toEqual('Hello, World!');
52+
});
53+
</file>
4854
</example>
4955

5056
Important things to notice:
@@ -75,7 +81,7 @@ The above is a suggestion. Tailor it to your needs.
7581
<example module='xmpl'>
7682
<file name="index.html">
7783
<div ng-controller="XmplController">
78-
{{ greeting }}!
84+
{{ greeting }}
7985
</div>
8086
</file>
8187

@@ -117,6 +123,13 @@ The above is a suggestion. Tailor it to your needs.
117123
});
118124

119125
</file>
126+
127+
<file name="protractor.js" type="protractor">
128+
it('should add Hello to the name', function() {
129+
expect(element(by.binding("{{ greeting }}")).getText()).toEqual('Bonjour World!');
130+
});
131+
</file>
132+
120133
</example>
121134

122135

0 commit comments

Comments
 (0)