1 | const { createMockStarQuery } = require('mockstar');
|
2 | const mockstarQuery = createMockStarQuery({
|
3 | cgi_a: 'mock_data_1'
|
4 | });
|
5 | const url = 'https://now.qq.com/index.html?a=2';
|
6 | const newUrl = mockstarQuery.appendToUrl(url);
|
7 |
|
8 | console.log(newUrl); |
\ | No newline at end of file |