24 lines
		
	
	
		
			792 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			792 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @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
 | |
|  */
 | |
| 
 | |
| import {Message, id} from '@angular/compiler/src/i18n/message';
 | |
| import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
 | |
| 
 | |
| export function main() {
 | |
|   describe('Message', () => {
 | |
|     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);
 | |
|         expect(id(m1)).toEqual(id(m1));
 | |
|         expect(id(m1)).not.toEqual(id(m2));
 | |
|       });
 | |
|     });
 | |
|   });
 | |
| }
 |