Skip to content

Commit a9bd89a

Browse files
committed
fixed test
1 parent 5f05ef8 commit a9bd89a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/insomnia-inso/src/commands/export-specification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function exportSpecification(
4848
return obj;
4949
};
5050
const cleaned = YAML.stringify(recursiveDeleteKey(YAML.parse(specFromDb.contents)));
51-
logger.log('Removed keys starting with x-kong-');
51+
logger.debug('Removed keys starting with x-kong-');
5252
if (!output) {
5353
logger.log(cleaned);
5454
return true;

packages/insomnia-inso/src/write-file.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ describe('writeFileWithCliOptions', () => {
4242
const contents = 'contents';
4343
const workingDir = 'working/dir';
4444
const promise = writeFileWithCliOptions(output, contents, workingDir);
45-
await expect(promise).resolves.toBe(path.normalize('working/dir/file.yaml'));
45+
await expect(promise).resolves.toBe(path.resolve(process.cwd(), 'working/dir/file.yaml'));
4646
});
4747
it('should ensure the output directory exists', async () => {
4848
const output = 'output/dir/file.yaml';
4949
const contents = 'contents';
5050
const workingDir = 'working/dir';
5151
const result = await writeFileWithCliOptions(output, contents, workingDir);
52-
expect(result).toEqual(path.normalize('working/dir/output/dir/file.yaml'));
52+
expect(result).toEqual(path.resolve(process.cwd(), 'working/dir/output/dir/file.yaml'));
5353
});
5454
});

0 commit comments

Comments
 (0)