mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 02:01:01 +01:00
9 lines
338 B
JavaScript
9 lines
338 B
JavaScript
const prepareRequest = require('../../src/ipc/network/prepare-request');
|
|
|
|
describe('prepare-request: prepareRequest', () => {
|
|
it("Should add 'http://' to the URL if no protocol is specified", () => {
|
|
const request = prepareRequest({ method: 'GET', url: 'test', body: {} });
|
|
expect(request.url).toEqual('http://test');
|
|
});
|
|
});
|