(value, defaultEncode)
| 73 | expect( |
| 74 | buildURL('/foo', { foo: 'bar', baz: 'qux' }, { |
| 75 | encode(value, defaultEncode) { |
| 76 | capturedThis.push(this); |
| 77 | return defaultEncode(value); |
| 78 | }, |
| 79 | }) |
| 80 | ).toEqual('/foo?foo=bar&baz=qux'); |
| 81 | expect(capturedThis).toHaveLength(4); |