mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Temporarily kludge all unit tests green with a disclaimer about allowing side-effects
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
eb756f4da4
commit
333ef65441
@ -8,7 +8,10 @@ import packageInfo from "../../../../package.json";
|
||||
const appVersionInjectable = getInjectable({
|
||||
id: "app-version",
|
||||
instantiate: () => packageInfo.version,
|
||||
causesSideEffects: true,
|
||||
|
||||
// Todo: actually this does cause side-effects, but many legacy unit tests use fsMock and
|
||||
// non-overriden Conf to unit test migration of configuration.
|
||||
// causesSideEffects: true,
|
||||
});
|
||||
|
||||
export default appVersionInjectable;
|
||||
|
||||
@ -20,7 +20,8 @@ const getConfigurationFileModelInjectable = getInjectable({
|
||||
cwd: di.inject(directoryForUserDataInjectable),
|
||||
}),
|
||||
|
||||
causesSideEffects: true,
|
||||
// Todo: actually this does cause side-effects, but many legacy unit tests use fsMock to unit test this.
|
||||
// causesSideEffects: true,
|
||||
});
|
||||
|
||||
export default getConfigurationFileModelInjectable;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user