Use path.join for tests

Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2021-12-08 13:49:26 -05:00
parent cf192e1a72
commit d9a286bd56
@@ -15,6 +15,7 @@
*/
import { ConfigReader } from '@backstage/config';
import { omit } from 'lodash';
import path from 'path';
import {
createDatabaseClient,
ensureDatabaseExists,
@@ -284,7 +285,7 @@ describe('DatabaseManager', () => {
// sqlite3 uses 'filename' instead of 'database'
expect(overrides).toHaveProperty(
'connection.filename',
`plugin_with_different_client/${pluginId}.sqlite`,
path.join('plugin_with_different_client', `${pluginId}.sqlite`),
);
});