(key1, key2)
| 71 | test('should sort parsed keys in given order', () => { |
| 72 | const fixture = ['c', 'a', 'b']; |
| 73 | const sort = (key1, key2) => fixture.indexOf(key1) - fixture.indexOf(key2); |
| 74 | |
| 75 | const parsed = queryString.parse('a=foo&b=bar&c=yay', {sort}); |
| 76 | for (const [index, key] of Object.keys(parsed).entries()) { |
nothing calls this directly
no outgoing calls
no test coverage detected