style(compiler-cli): reformat of codebase with new clang-format version (#36520)
This commit reformats the packages/compiler-cli tree using the new version of clang-format. PR Close #36520
This commit is contained in:
@ -16,9 +16,9 @@ runInEachFileSystem(() => {
|
||||
beforeEach(() => _ = absoluteFrom);
|
||||
|
||||
describe('findFlatIndexEntryPoint', () => {
|
||||
|
||||
it('should use the only source file if only a single one is specified',
|
||||
() => { expect(findFlatIndexEntryPoint([_('/src/index.ts')])).toBe(_('/src/index.ts')); });
|
||||
it('should use the only source file if only a single one is specified', () => {
|
||||
expect(findFlatIndexEntryPoint([_('/src/index.ts')])).toBe(_('/src/index.ts'));
|
||||
});
|
||||
|
||||
it('should use the shortest source file ending with "index.ts" for multiple files', () => {
|
||||
expect(findFlatIndexEntryPoint([
|
||||
|
@ -12,8 +12,9 @@ import {ReferenceGraph} from '../src/reference_graph';
|
||||
describe('entry_point reference graph', () => {
|
||||
let graph: ReferenceGraph<string>;
|
||||
|
||||
const refs =
|
||||
(target: string) => { return Array.from(graph.transitiveReferencesOf(target)).sort(); };
|
||||
const refs = (target: string) => {
|
||||
return Array.from(graph.transitiveReferencesOf(target)).sort();
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
graph = new ReferenceGraph();
|
||||
@ -45,6 +46,7 @@ describe('entry_point reference graph', () => {
|
||||
expect(graph.pathFrom('beta', 'alpha')).toEqual(['beta', 'delta', 'alpha']);
|
||||
});
|
||||
|
||||
it('should not report a path that doesn\'t exist',
|
||||
() => { expect(graph.pathFrom('gamma', 'beta')).toBeNull(); });
|
||||
it('should not report a path that doesn\'t exist', () => {
|
||||
expect(graph.pathFrom('gamma', 'beta')).toBeNull();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user