refactor to allow switching ICategoryCollection context #40
This commit is contained in:
11
tests/unit/stubs/EnvironmentStub.ts
Normal file
11
tests/unit/stubs/EnvironmentStub.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { IEnvironment } from '@/application/Environment/IEnvironment';
|
||||
import { OperatingSystem } from '@/domain/OperatingSystem';
|
||||
|
||||
export class EnvironmentStub implements IEnvironment {
|
||||
public isDesktop = true;
|
||||
public os = OperatingSystem.Windows;
|
||||
public withOs(os: OperatingSystem): EnvironmentStub {
|
||||
this.os = os;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user