| 
									
										
										
										
											2017-08-31 02:38:39 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-13 11:51:02 +01:00
										 |  |  | import {DeprecatedI18NPipesModule, Plural} from '@angular/common'; | 
					
						
							|  |  |  | import {DEPRECATED_PLURAL_FN, getPluralCase} from '@angular/common/src/i18n/localization'; | 
					
						
							| 
									
										
										
										
											2017-08-31 02:38:39 +02:00
										 |  |  | import {TestBed, inject} from '@angular/core/testing'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-13 11:51:02 +01:00
										 |  |  | describe('DeprecatedI18NPipesModule', () => { | 
					
						
							|  |  |  |   beforeEach(() => { TestBed.configureTestingModule({imports: [DeprecatedI18NPipesModule]}); }); | 
					
						
							| 
									
										
										
										
											2017-08-31 02:38:39 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-13 11:51:02 +01:00
										 |  |  |   it('should define the token DEPRECATED_PLURAL_FN', | 
					
						
							|  |  |  |      inject( | 
					
						
							|  |  |  |          [DEPRECATED_PLURAL_FN], | 
					
						
							|  |  |  |          (injectedGetPluralCase?: (locale: string, value: number | string) => Plural) => { | 
					
						
							|  |  |  |            expect(injectedGetPluralCase).toEqual(getPluralCase); | 
					
						
							|  |  |  |          })); | 
					
						
							|  |  |  | }); |