Skip to content

Commit 4c20f14

Browse files
committed
fix(core): Revert resolved rebase conflict
Signed-off-by: Kaung Zin Hein <[email protected]>
1 parent 719d727 commit 4c20f14

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

packages/core/test/utils-hoist/instrument/fetch.test.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
import { parseFetchArgs } from '../../../src/utils-hoist/instrument/fetch';
22

33
describe('instrument > parseFetchArgs', () => {
4-
const data = { name: 'Test' };
5-
64
it.each([
7-
['string URL only', ['http://example.com'], { method: 'GET', url: 'http://example.com', body: null }],
8-
['URL object only', [new URL('http://example.com')], { method: 'GET', url: 'http://example.com/', body: null }],
9-
['Request URL only', [{ url: 'http://example.com' }], { method: 'GET', url: 'http://example.com', body: null }],
5+
['string URL only', ['http://example.com'], { method: 'GET', url: 'http://example.com' }],
6+
['URL object only', [new URL('http://example.com')], { method: 'GET', url: 'http://example.com/' }],
7+
['Request URL only', [{ url: 'http://example.com' }], { method: 'GET', url: 'http://example.com' }],
108
[
119
'Request URL & method only',
1210
[{ url: 'http://example.com', method: 'post' }],
13-
{ method: 'POST', url: 'http://example.com', body: null },
14-
],
15-
[
16-
'string URL & options',
17-
['http://example.com', { method: 'post', body: JSON.stringify(data) }],
18-
{ method: 'POST', url: 'http://example.com', body: '{"name":"Test"}' },
11+
{ method: 'POST', url: 'http://example.com' },
1912
],
13+
['string URL & options', ['http://example.com', { method: 'post' }], { method: 'POST', url: 'http://example.com' }],
2014
[
2115
'URL object & options',
22-
[new URL('http://example.com'), { method: 'post', body: JSON.stringify(data) }],
23-
{ method: 'POST', url: 'http://example.com/', body: '{"name":"Test"}' },
16+
[new URL('http://example.com'), { method: 'post' }],
17+
{ method: 'POST', url: 'http://example.com/' },
2418
],
2519
[
2620
'Request URL & options',
27-
[{ url: 'http://example.com' }, { method: 'post', body: JSON.stringify(data) }],
28-
{ method: 'POST', url: 'http://example.com', body: '{"name":"Test"}' },
21+
[{ url: 'http://example.com' }, { method: 'post' }],
22+
{ method: 'POST', url: 'http://example.com' },
2923
],
3024
])('%s', (_name, args, expected) => {
3125
const actual = parseFetchArgs(args as unknown[]);

0 commit comments

Comments
 (0)