Alias would remove unnecessary repetitions and less relative paths make changes easier when moving around files. This commit cleans also up some relative paths ('../../../') by using the alias and orders imports. It updates both path alias in tsconfig and module alias in Vue CLI's bundler (vuejs/vue-cli#2398).
14 lines
802 B
TypeScript
14 lines
802 B
TypeScript
import { ScriptingLanguage } from '@/domain/ScriptingLanguage';
|
|
import { ShellBuilder } from '@/application/Context/State/Code/Generation/Languages/ShellBuilder';
|
|
import { BatchBuilder } from '@/application/Context/State/Code/Generation/Languages/BatchBuilder';
|
|
import { CodeBuilderFactory } from '@/application/Context/State/Code/Generation/CodeBuilderFactory';
|
|
import { ScriptingLanguageFactoryTestRunner } from '@tests/unit/application/Common/ScriptingLanguage/ScriptingLanguageFactoryTestRunner';
|
|
|
|
describe('CodeBuilderFactory', () => {
|
|
const sut = new CodeBuilderFactory();
|
|
const runner = new ScriptingLanguageFactoryTestRunner()
|
|
.expect(ScriptingLanguage.shellscript, ShellBuilder)
|
|
.expect(ScriptingLanguage.batchfile, BatchBuilder);
|
|
runner.testCreateMethod(sut);
|
|
});
|