You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							755 B
						
					
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							755 B
						
					
					
				| import Metadata from '../metadata.js';
 | |
| import metadata from '../../metadata.min.json' assert { type: 'json' };
 | |
| import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';
 | |
| describe('extractNationalNumberFromPossiblyIncompleteNumber', function () {
 | |
|   it('should parse a carrier code when there is no national prefix transform rule', function () {
 | |
|     var meta = new Metadata(metadata);
 | |
|     meta.country('AU');
 | |
|     extractNationalNumberFromPossiblyIncompleteNumber('18311800123', meta).should.deep.equal({
 | |
|       nationalPrefix: undefined,
 | |
|       carrierCode: '1831',
 | |
|       nationalNumber: '1800123'
 | |
|     });
 | |
|   });
 | |
| });
 | |
| //# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.test.js.map
 |