style(compiler): reformat of codebase with new clang-format version (#36520)
This commit reformats the packages/compiler tree using the new version of clang-format. PR Close #36520
This commit is contained in:
@ -15,7 +15,9 @@ import {escapeRegExp, splitAtColon, stringify, utf8Encode} from '../src/util';
|
||||
expect(splitAtColon('a:b', [])).toEqual(['a', 'b']);
|
||||
});
|
||||
|
||||
it('should trim parts', () => { expect(splitAtColon(' a : b ', [])).toEqual(['a', 'b']); });
|
||||
it('should trim parts', () => {
|
||||
expect(splitAtColon(' a : b ', [])).toEqual(['a', 'b']);
|
||||
});
|
||||
|
||||
it('should support multiple ":"', () => {
|
||||
expect(splitAtColon('a:b:c', [])).toEqual(['a', 'b:c']);
|
||||
@ -70,13 +72,16 @@ import {escapeRegExp, splitAtColon, stringify, utf8Encode} from '../src/util';
|
||||
['\uDEEE', '\xED\xBB\xAE'],
|
||||
['\uDFFF', '\xED\xBF\xBF'],
|
||||
];
|
||||
tests.forEach(([input, output]) => { expect(utf8Encode(input)).toEqual(output); });
|
||||
tests.forEach(([input, output]) => {
|
||||
expect(utf8Encode(input)).toEqual(output);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('stringify()', () => {
|
||||
it('should handle objects with no prototype.',
|
||||
() => { expect(stringify(Object.create(null))).toEqual('object'); });
|
||||
it('should handle objects with no prototype.', () => {
|
||||
expect(stringify(Object.create(null))).toEqual('object');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user