Merge pull request #20058 from backstage/freben/win

finally fix win tests
This commit is contained in:
Fredrik Adelöw
2023-09-21 09:20:27 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
@@ -74,9 +74,9 @@ describe('ReadableArrayResponse', () => {
await expect(
fs.readFile(resolvePath(dir, 'file1.yaml'), 'utf8'),
).resolves.toBe('site_name: Test\n');
).resolves.toMatch(/site_name: Test/);
await expect(
fs.readFile(resolvePath(dir, 'file2.yaml'), 'utf8'),
).resolves.toBe('site_name: Test2\n');
).resolves.toMatch(/site_name: Test2/);
});
});
+1 -1
View File
@@ -339,7 +339,7 @@ describe('loadConfig', () => {
title: 'New Title',
},
},
path: '/root/app-config.yaml',
path: `${root}root${sep}app-config.yaml`,
},
]);
@@ -107,7 +107,7 @@ describe('ConfigSources', () => {
).toEqual([
{
name: 'FileConfigSource',
path: `${root}config.yaml`,
path: '/config.yaml',
substitutionFunc: subFunc,
},
]);