(str: string)
| 65 | |
| 66 | it('sorts in a case insensitive manner', () => { |
| 67 | const st = (str: string): SimpleType => ({ str, num: 1 }) |
| 68 | const input: SimpleType[] = [ st('xyz'), st('abc'), st('ABC'), st('this'), st('that') ] |
| 69 | const result = sort(input, 'str') |
| 70 | expect(result).toEqual([st('abc'), st('ABC'), st('that'), st('this'), st('xyz')]) |