Skip to content

Commit d5bd5fc

Browse files
committed
fixup: improve test failure output
1 parent e7c01ef commit d5bd5fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/devtools-proxy-support/src/proxy-options.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ describe('proxy options handling', function () {
221221
};
222222

223223
testResolveProxy = async (proxyOptions, url, expectation) => {
224-
const config = translateToElectronProxyConfig(proxyOptions);
224+
const config = JSON.stringify(
225+
translateToElectronProxyConfig(proxyOptions)
226+
);
225227
// https://www.electronjs.org/docs/latest/api/app#appsetproxyconfig
226228
// https://www.electronjs.org/docs/latest/api/app#appresolveproxyurl
227-
const actual = await runJS(`app.setProxy(${JSON.stringify(
228-
config
229-
)}).then(_ => {
229+
const actual = await runJS(`app.setProxy(${config}).then(_ => {
230230
return app.resolveProxy(${JSON.stringify(url)});
231231
})`);
232232
expect({ actual, config }).to.have.property('actual', expectation);

0 commit comments

Comments
 (0)