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

Commit 44345c7

Browse files
committed
style(ngPluralizeSpec): fix indentation
1 parent 58f121a commit 44345c7

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

test/ng/directive/ngPluralizeSpec.js

+61-61
Original file line numberDiff line numberDiff line change
@@ -10,92 +10,92 @@ describe('ngPluralize', function() {
1010

1111

1212
describe('deal with pluralized strings without offset', function() {
13-
beforeEach(inject(function($rootScope, $compile) {
14-
element = $compile(
13+
beforeEach(inject(function($rootScope, $compile) {
14+
element = $compile(
1515
'<ng:pluralize count="email"' +
1616
"when=\"{'0': 'You have no new email'," +
1717
"'one': 'You have one new email'," +
1818
"'other': 'You have {} new emails'}\">" +
1919
'</ng:pluralize>')($rootScope);
20-
}));
20+
}));
2121

2222

23-
it('should show single/plural strings', inject(function($rootScope) {
24-
$rootScope.email = 0;
25-
$rootScope.$digest();
26-
expect(element.text()).toBe('You have no new email');
23+
it('should show single/plural strings', inject(function($rootScope) {
24+
$rootScope.email = 0;
25+
$rootScope.$digest();
26+
expect(element.text()).toBe('You have no new email');
2727

28-
$rootScope.email = '0';
29-
$rootScope.$digest();
30-
expect(element.text()).toBe('You have no new email');
28+
$rootScope.email = '0';
29+
$rootScope.$digest();
30+
expect(element.text()).toBe('You have no new email');
3131

32-
$rootScope.email = 1;
33-
$rootScope.$digest();
34-
expect(element.text()).toBe('You have one new email');
32+
$rootScope.email = 1;
33+
$rootScope.$digest();
34+
expect(element.text()).toBe('You have one new email');
3535

36-
$rootScope.email = 0.01;
37-
$rootScope.$digest();
38-
expect(element.text()).toBe('You have 0.01 new emails');
36+
$rootScope.email = 0.01;
37+
$rootScope.$digest();
38+
expect(element.text()).toBe('You have 0.01 new emails');
3939

40-
$rootScope.email = '0.1';
41-
$rootScope.$digest();
42-
expect(element.text()).toBe('You have 0.1 new emails');
40+
$rootScope.email = '0.1';
41+
$rootScope.$digest();
42+
expect(element.text()).toBe('You have 0.1 new emails');
4343

44-
$rootScope.email = 2;
45-
$rootScope.$digest();
46-
expect(element.text()).toBe('You have 2 new emails');
44+
$rootScope.email = 2;
45+
$rootScope.$digest();
46+
expect(element.text()).toBe('You have 2 new emails');
4747

48-
$rootScope.email = -0.1;
49-
$rootScope.$digest();
50-
expect(element.text()).toBe('You have -0.1 new emails');
48+
$rootScope.email = -0.1;
49+
$rootScope.$digest();
50+
expect(element.text()).toBe('You have -0.1 new emails');
5151

52-
$rootScope.email = '-0.01';
53-
$rootScope.$digest();
54-
expect(element.text()).toBe('You have -0.01 new emails');
52+
$rootScope.email = '-0.01';
53+
$rootScope.$digest();
54+
expect(element.text()).toBe('You have -0.01 new emails');
5555

56-
$rootScope.email = -2;
57-
$rootScope.$digest();
58-
expect(element.text()).toBe('You have -2 new emails');
59-
}));
56+
$rootScope.email = -2;
57+
$rootScope.$digest();
58+
expect(element.text()).toBe('You have -2 new emails');
59+
}));
6060

6161

62-
it('should show single/plural strings with mal-formed inputs', inject(function($rootScope) {
63-
$rootScope.email = '';
64-
$rootScope.$digest();
65-
expect(element.text()).toBe('');
62+
it('should show single/plural strings with mal-formed inputs', inject(function($rootScope) {
63+
$rootScope.email = '';
64+
$rootScope.$digest();
65+
expect(element.text()).toBe('');
6666

67-
$rootScope.email = null;
68-
$rootScope.$digest();
69-
expect(element.text()).toBe('');
67+
$rootScope.email = null;
68+
$rootScope.$digest();
69+
expect(element.text()).toBe('');
7070

71-
$rootScope.email = undefined;
72-
$rootScope.$digest();
73-
expect(element.text()).toBe('');
71+
$rootScope.email = undefined;
72+
$rootScope.$digest();
73+
expect(element.text()).toBe('');
7474

75-
$rootScope.email = 'a3';
76-
$rootScope.$digest();
77-
expect(element.text()).toBe('');
75+
$rootScope.email = 'a3';
76+
$rootScope.$digest();
77+
expect(element.text()).toBe('');
7878

79-
$rootScope.email = '011';
80-
$rootScope.$digest();
81-
expect(element.text()).toBe('You have 11 new emails');
79+
$rootScope.email = '011';
80+
$rootScope.$digest();
81+
expect(element.text()).toBe('You have 11 new emails');
8282

83-
$rootScope.email = '-011';
84-
$rootScope.$digest();
85-
expect(element.text()).toBe('You have -11 new emails');
83+
$rootScope.email = '-011';
84+
$rootScope.$digest();
85+
expect(element.text()).toBe('You have -11 new emails');
8686

87-
$rootScope.email = '1fff';
88-
$rootScope.$digest();
89-
expect(element.text()).toBe('You have one new email');
87+
$rootScope.email = '1fff';
88+
$rootScope.$digest();
89+
expect(element.text()).toBe('You have one new email');
9090

91-
$rootScope.email = '0aa22';
92-
$rootScope.$digest();
93-
expect(element.text()).toBe('You have no new email');
91+
$rootScope.email = '0aa22';
92+
$rootScope.$digest();
93+
expect(element.text()).toBe('You have no new email');
9494

95-
$rootScope.email = '000001';
96-
$rootScope.$digest();
97-
expect(element.text()).toBe('You have one new email');
98-
}));
95+
$rootScope.email = '000001';
96+
$rootScope.$digest();
97+
expect(element.text()).toBe('You have one new email');
98+
}));
9999
});
100100

101101

0 commit comments

Comments
 (0)