(key1, key2)
| 459 | test('should sort keys in given order', () => { |
| 460 | const fixture = ['c', 'a', 'b']; |
| 461 | const sort = (key1, key2) => fixture.indexOf(key1) - fixture.indexOf(key2); |
| 462 | |
| 463 | assert.equal(queryString.stringify({a: 'foo', b: 'bar', c: 'baz'}, {sort}), 'c=baz&a=foo&b=bar'); |
| 464 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected