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Content":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ts from 'typescript';\nimport {Tsc} from '../src/tsc';\nimport {VinylFile} from '../src/vinyl_file';\n\ndescribe('options parsing', () => {\n\n const configData = `\n{\n \"angularCompilerOptions\": {\n \"googleClosureOutput\": true\n },\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"outDir\": \"built\"\n }\n}`;\n\n const tsc = new Tsc(() => configData, () => ['tsconfig.json']);\n const config = {path: 'basePath/tsconfig.json', contents: new Buffer(configData)};\n\n it('should combine all options into ngOptions', () => {\n const {parsed, ngOptions} =\n tsc.readConfiguration('projectDir', 'basePath', {target: ts.ScriptTarget.ES2015});\n\n expect(ngOptions).toEqual({\n genDir: 'basePath',\n googleClosureOutput: true,\n module: ts.ModuleKind.CommonJS,\n outDir: 'basePath/built',\n configFilePath: undefined,\n target: ts.ScriptTarget.ES2015\n });\n });\n\n it('should combine all options into ngOptions from vinyl like object', () => {\n const {parsed, ngOptions} = tsc.readConfiguration(config as VinylFile, 'basePath');\n\n expect(ngOptions).toEqual({\n genDir: 'basePath',\n googleClosureOutput: true,\n module: ts.ModuleKind.CommonJS,\n outDir: 'basePath/built',\n configFilePath: undefined\n });\n });\n});\n"]}
\No newline at end of file