|  | 
| 1 |  | -import { getMappedType } from './getMappedType'; | 
| 2 |  | - | 
| 3 |  | -describe('getMappedType', () => { | 
| 4 |  | - it('should map types to the basics', () => { | 
| 5 |  | - expect(getMappedType('File')).toEqual('binary'); | 
| 6 |  | - expect(getMappedType('file')).toEqual('binary'); | 
| 7 |  | - expect(getMappedType('string')).toEqual('string'); | 
| 8 |  | - expect(getMappedType('date')).toEqual('string'); | 
| 9 |  | - expect(getMappedType('date-time')).toEqual('string'); | 
| 10 |  | - expect(getMappedType('float')).toEqual('number'); | 
| 11 |  | - expect(getMappedType('double')).toEqual('number'); | 
| 12 |  | - expect(getMappedType('short')).toEqual('number'); | 
| 13 |  | - expect(getMappedType('int')).toEqual('number'); | 
| 14 |  | - expect(getMappedType('boolean')).toEqual('boolean'); | 
| 15 |  | - expect(getMappedType('any')).toEqual('any'); | 
| 16 |  | - expect(getMappedType('object')).toEqual('any'); | 
| 17 |  | - expect(getMappedType('void')).toEqual('void'); | 
| 18 |  | - expect(getMappedType('null')).toEqual('null'); | 
| 19 |  | - expect(getMappedType('unknown')).toEqual(undefined); | 
| 20 |  | - expect(getMappedType('')).toEqual(undefined); | 
| 21 |  | - }); | 
| 22 |  | -}); | 
|  | 1 | +import { getMappedType } from './getMappedType'; | 
|  | 2 | + | 
|  | 3 | +describe('getMappedType', () => { | 
|  | 4 | + it('should map types to the basics', () => { | 
|  | 5 | + expect(getMappedType('File')).toEqual('binary'); | 
|  | 6 | + expect(getMappedType('file')).toEqual('binary'); | 
|  | 7 | + expect(getMappedType('string')).toEqual('string'); | 
|  | 8 | + expect(getMappedType('date')).toEqual('string'); | 
|  | 9 | + expect(getMappedType('date-time')).toEqual('string'); | 
|  | 10 | + expect(getMappedType('float')).toEqual('number'); | 
|  | 11 | + expect(getMappedType('double')).toEqual('number'); | 
|  | 12 | + expect(getMappedType('short')).toEqual('number'); | 
|  | 13 | + expect(getMappedType('int')).toEqual('number'); | 
|  | 14 | + expect(getMappedType('boolean')).toEqual('boolean'); | 
|  | 15 | + expect(getMappedType('any')).toEqual('any'); | 
|  | 16 | + expect(getMappedType('object')).toEqual('any'); | 
|  | 17 | + expect(getMappedType('void')).toEqual('void'); | 
|  | 18 | + expect(getMappedType('null')).toEqual('null'); | 
|  | 19 | + expect(getMappedType('unknown')).toEqual(undefined); | 
|  | 20 | + expect(getMappedType('')).toEqual(undefined); | 
|  | 21 | + }); | 
|  | 22 | +}); | 
0 commit comments