We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9509b36 commit a0bf3eaCopy full SHA for a0bf3ea
1 file changed
packages/request/__tests__/client.test.js
@@ -112,6 +112,15 @@ describe('Client', () => {
112
expect(client.baseUrl.href).toBe(url.href)
113
})
114
115
+ it('should create an instance with url path preserved', () => {
116
+ client = new Client({
117
+ url: url.href,
118
+ relativeUrl: 'foo/bar',
119
+ })
120
+ expect(url.href.endsWith('/')).toBe(false)
121
+ expect(client.baseUrl.href).toBe(url.href + '/foo/bar')
122
123
+
124
it('should create an instance with bearer authorization', () => {
125
client = new Client({
126
url,
0 commit comments