Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

style(ngPluralizeSpec): fix indentation

  • Loading branch information...
commit 44345c74decfd2e303ada9c958af8e9a07bb8336 1 parent 58f121a
@IgorMinar IgorMinar authored
Showing with 61 additions and 61 deletions.
  1. +61 −61 test/ng/directive/ngPluralizeSpec.js
View
122 test/ng/directive/ngPluralizeSpec.js
@@ -10,92 +10,92 @@ describe('ngPluralize', function() {
describe('deal with pluralized strings without offset', function() {
- beforeEach(inject(function($rootScope, $compile) {
- element = $compile(
+ beforeEach(inject(function($rootScope, $compile) {
+ element = $compile(
'<ng:pluralize count="email"' +
"when=\"{'0': 'You have no new email'," +
"'one': 'You have one new email'," +
"'other': 'You have {} new emails'}\">" +
'</ng:pluralize>')($rootScope);
- }));
+ }));
- it('should show single/plural strings', inject(function($rootScope) {
- $rootScope.email = 0;
- $rootScope.$digest();
- expect(element.text()).toBe('You have no new email');
+ it('should show single/plural strings', inject(function($rootScope) {
+ $rootScope.email = 0;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have no new email');
- $rootScope.email = '0';
- $rootScope.$digest();
- expect(element.text()).toBe('You have no new email');
+ $rootScope.email = '0';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have no new email');
- $rootScope.email = 1;
- $rootScope.$digest();
- expect(element.text()).toBe('You have one new email');
+ $rootScope.email = 1;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have one new email');
- $rootScope.email = 0.01;
- $rootScope.$digest();
- expect(element.text()).toBe('You have 0.01 new emails');
+ $rootScope.email = 0.01;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have 0.01 new emails');
- $rootScope.email = '0.1';
- $rootScope.$digest();
- expect(element.text()).toBe('You have 0.1 new emails');
+ $rootScope.email = '0.1';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have 0.1 new emails');
- $rootScope.email = 2;
- $rootScope.$digest();
- expect(element.text()).toBe('You have 2 new emails');
+ $rootScope.email = 2;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have 2 new emails');
- $rootScope.email = -0.1;
- $rootScope.$digest();
- expect(element.text()).toBe('You have -0.1 new emails');
+ $rootScope.email = -0.1;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have -0.1 new emails');
- $rootScope.email = '-0.01';
- $rootScope.$digest();
- expect(element.text()).toBe('You have -0.01 new emails');
+ $rootScope.email = '-0.01';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have -0.01 new emails');
- $rootScope.email = -2;
- $rootScope.$digest();
- expect(element.text()).toBe('You have -2 new emails');
- }));
+ $rootScope.email = -2;
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have -2 new emails');
+ }));
- it('should show single/plural strings with mal-formed inputs', inject(function($rootScope) {
- $rootScope.email = '';
- $rootScope.$digest();
- expect(element.text()).toBe('');
+ it('should show single/plural strings with mal-formed inputs', inject(function($rootScope) {
+ $rootScope.email = '';
+ $rootScope.$digest();
+ expect(element.text()).toBe('');
- $rootScope.email = null;
- $rootScope.$digest();
- expect(element.text()).toBe('');
+ $rootScope.email = null;
+ $rootScope.$digest();
+ expect(element.text()).toBe('');
- $rootScope.email = undefined;
- $rootScope.$digest();
- expect(element.text()).toBe('');
+ $rootScope.email = undefined;
+ $rootScope.$digest();
+ expect(element.text()).toBe('');
- $rootScope.email = 'a3';
- $rootScope.$digest();
- expect(element.text()).toBe('');
+ $rootScope.email = 'a3';
+ $rootScope.$digest();
+ expect(element.text()).toBe('');
- $rootScope.email = '011';
- $rootScope.$digest();
- expect(element.text()).toBe('You have 11 new emails');
+ $rootScope.email = '011';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have 11 new emails');
- $rootScope.email = '-011';
- $rootScope.$digest();
- expect(element.text()).toBe('You have -11 new emails');
+ $rootScope.email = '-011';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have -11 new emails');
- $rootScope.email = '1fff';
- $rootScope.$digest();
- expect(element.text()).toBe('You have one new email');
+ $rootScope.email = '1fff';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have one new email');
- $rootScope.email = '0aa22';
- $rootScope.$digest();
- expect(element.text()).toBe('You have no new email');
+ $rootScope.email = '0aa22';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have no new email');
- $rootScope.email = '000001';
- $rootScope.$digest();
- expect(element.text()).toBe('You have one new email');
- }));
+ $rootScope.email = '000001';
+ $rootScope.$digest();
+ expect(element.text()).toBe('You have one new email');
+ }));
});
Please sign in to comment.
Something went wrong with that request. Please try again.