working_dir usage more clear in add_extension (#6958)
This commit is contained in:
@@ -107,8 +107,7 @@ export default function ProviderConfigurationModal({
|
||||
Object.entries(configValues)
|
||||
.filter(
|
||||
([_k, entry]) =>
|
||||
!!entry.value ||
|
||||
(entry.serverValue != null && typeof entry.serverValue === 'string')
|
||||
!!entry.value || (entry.serverValue != null && typeof entry.serverValue === 'string')
|
||||
)
|
||||
.map(([k, entry]) => [
|
||||
k,
|
||||
|
||||
@@ -190,14 +190,7 @@ describe('checkBlocked', () => {
|
||||
});
|
||||
|
||||
it('does not block loopback by default, blocks when opted in', async () => {
|
||||
const allowed = await checkBlocked(
|
||||
'localhost',
|
||||
8080,
|
||||
blocked,
|
||||
noLD,
|
||||
noLDCache,
|
||||
defaultOptions
|
||||
);
|
||||
const allowed = await checkBlocked('localhost', 8080, blocked, noLD, noLDCache, defaultOptions);
|
||||
expect(allowed.blocked).toBe(false);
|
||||
|
||||
const blocked_ = await checkBlocked('localhost', 8080, blocked, noLD, noLDCache, {
|
||||
|
||||
Reference in New Issue
Block a user