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

Commit 805e083

Browse files
Vojta JinaIgorMinar
Vojta Jina
authored andcommitted
Remove trailing white spaces from all source files
find . -name "*.js" -print | xargs sed -Ei s/[[:space:]]*$//
1 parent 1abdc09 commit 805e083

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

example/personalLog/test/personalLogSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('example.personalLog.LogCtrl', function() {
1111
beforeEach(function() {
1212
logCtrl = createNotesCtrl();
1313
});
14-
14+
1515

1616
it('should initialize notes with an empty array', function() {
1717
expect(logCtrl.logs).toEqual([]);
@@ -28,7 +28,7 @@ describe('example.personalLog.LogCtrl', function() {
2828
it('should add newMsg to logs as a log entry', function() {
2929
logCtrl.newMsg = 'first log message';
3030
logCtrl.addLog();
31-
31+
3232
expect(logCtrl.logs.length).toBe(1);
3333
expect(logCtrl.logs[0].msg).toBe('first log message');
3434

scenario/datastore-scenarios.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
angular.scenarioDef.datastore = {
22
$before:[
3-
{Given:"dataset",
3+
{Given:"dataset",
44
dataset:{
5-
Book:[{$id:'moby', name:"Moby Dick"},
5+
Book:[{$id:'moby', name:"Moby Dick"},
66
{$id:'gadsby', name:'Great Gadsby'}]
77
}
88
},
99
{Given:"browser", at:"datastore.html#book=moby"},
1010
],
1111
checkLoadBook:[
1212
{Then:"drainRequestQueue"},
13-
13+
1414
{Then:"text", at:"{{book.$id}}", should_be:"moby"},
1515
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"},
1616
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"},
17-
17+
1818
]
1919
};

src/widgets.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -837,16 +837,16 @@ angularWidget('a', function() {
837837
*
838838
* @description
839839
* The `ng:repeat` widget instantiates a template once per item from a collection. The collection is
840-
* enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets
841-
* its own scope, where the given loop variable is set to the current collection item, and `$index`
840+
* enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets
841+
* its own scope, where the given loop variable is set to the current collection item, and `$index`
842842
* is set to the item index or key.
843843
*
844844
* Special properties are exposed on the local scope of each template instance, including:
845845
*
846846
* * `$index` – `{number}` – iterator offset of the repeated element (0..length-1)
847-
* * `$position` – `{string}` – position of the repeated element in the iterator. One of:
847+
* * `$position` – `{string}` – position of the repeated element in the iterator. One of:
848848
* * `'first'`,
849-
* * `'middle'`
849+
* * `'middle'`
850850
* * `'last'`
851851
*
852852
* Note: Although `ng:repeat` looks like a directive, it is actually an attribute widget.

test/BrowserSpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('browser', function(){
123123
expect(code).toEqual(202);
124124
expect(response).toEqual('RESPONSE');
125125
});
126-
126+
127127
it('should not set Content-type header for GET requests', function() {
128128
browser.xhr('GET', 'URL', 'POST-DATA', function(c, r) {});
129129

0 commit comments

Comments
 (0)