| 
									
										
										
										
											2016-04-12 09:40:37 -07:00
										 |  |  | import { | 
					
						
							|  |  |  |   beforeEach, | 
					
						
							|  |  |  |   ddescribe, | 
					
						
							|  |  |  |   describe, | 
					
						
							|  |  |  |   expect, | 
					
						
							|  |  |  |   iit, | 
					
						
							|  |  |  |   inject, | 
					
						
							|  |  |  |   it, | 
					
						
							|  |  |  |   xdescribe, | 
					
						
							|  |  |  |   xit | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | } from '@angular/core/testing/testing_internal'; | 
					
						
							| 
									
										
										
										
											2016-03-14 11:45:14 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {Message, id} from '@angular/compiler/src/i18n/message'; | 
					
						
							| 
									
										
										
										
											2016-03-14 11:45:14 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | export function main() { | 
					
						
							| 
									
										
										
										
											2016-03-17 20:57:57 -07:00
										 |  |  |   describe('Message', () => { | 
					
						
							| 
									
										
										
										
											2016-04-12 09:40:37 -07:00
										 |  |  |     describe("id", () => { | 
					
						
							|  |  |  |       it("should return a different id for messages with and without the meaning", () => { | 
					
						
							|  |  |  |         let m1 = new Message("content", "meaning", null); | 
					
						
							|  |  |  |         let m2 = new Message("content", null, null); | 
					
						
							| 
									
										
										
										
											2016-03-14 11:45:14 -07:00
										 |  |  |         expect(id(m1)).toEqual(id(m1)); | 
					
						
							|  |  |  |         expect(id(m1)).not.toEqual(id(m2)); | 
					
						
							|  |  |  |       }); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } |