mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-07 22:18:33 +00:00
tests: fix breaking tests (#7132)
* fix: update placeholder text for environment variable input * fix: handle undefined color in environment objects Don't export if `undefined` * fix: update collection import logic for YML and BRU formats * fix: ensure error icon is not visible after header validation * fix: specify format for collection and environment serialization
This commit is contained in:
@@ -457,7 +457,7 @@ const createCollectionFromBrunoObject = async (collection, dirPath) => {
|
||||
|
||||
// Create collection.bru if root exists
|
||||
if (collection.root) {
|
||||
const collectionContent = await stringifyCollection(collection.root);
|
||||
const collectionContent = await stringifyCollection(collection.root, {}, { format: 'bru' });
|
||||
fs.writeFileSync(path.join(dirPath, 'collection.bru'), collectionContent);
|
||||
}
|
||||
|
||||
@@ -467,7 +467,7 @@ const createCollectionFromBrunoObject = async (collection, dirPath) => {
|
||||
fs.mkdirSync(envDirPath, { recursive: true });
|
||||
|
||||
for (const env of collection.environments) {
|
||||
const content = await stringifyEnvironment(env);
|
||||
const content = await stringifyEnvironment(env, { format: 'bru' });
|
||||
const filename = sanitizeName(`${env.name}.bru`);
|
||||
fs.writeFileSync(path.join(envDirPath, filename), content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user