style(ngcc): reformat of ngcc after clang update (#36447)

PR Close #36447
This commit is contained in:
Pete Bacon Darwin
2020-04-06 08:30:08 +01:00
committed by Kara Erickson
parent bfa55162de
commit 74b7a8eaf5
118 changed files with 1386 additions and 1046 deletions

View File

@ -23,7 +23,7 @@ runInEachFileSystem(() => {
class LockFileUnderTest extends LockFileWithChildProcess {
// Note that log is initialized in the `createUnlocker()` function that is called from
// super(), so we can't initialize it here.
log !: string[];
log!: string[];
constructor(fs: FileSystem) {
super(fs, new MockLogger());
fs.ensureDir(fs.dirname(this.path));
@ -47,7 +47,11 @@ runInEachFileSystem(() => {
const log = this.log;
// Normally this would fork a child process and return it.
// But we don't want to do that in these tests.
return <any>{disconnect() { log.push('unlocker.disconnect()'); }};
return <any>{
disconnect() {
log.push('unlocker.disconnect()');
}
};
}
}

View File

@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AbsoluteFsPath, FileSystem, absoluteFrom, getFileSystem} from '../../../../src/ngtsc/file_system';
import {absoluteFrom, AbsoluteFsPath, FileSystem, getFileSystem} from '../../../../src/ngtsc/file_system';
import {runInEachFileSystem} from '../../../../src/ngtsc/file_system/testing';
import {removeLockFile} from '../../../src/locking/lock_file_with_child_process/util';
import {MockLogger} from '../../helpers/mock_logger';
@ -24,8 +24,9 @@ runInEachFileSystem(() => {
});
describe('removeLockFile()', () => {
it('should do nothing if there is no file to remove',
() => { removeLockFile(fs, logger, absoluteFrom('/lockfile/path'), '1234'); });
it('should do nothing if there is no file to remove', () => {
removeLockFile(fs, logger, absoluteFrom('/lockfile/path'), '1234');
});
it('should do nothing if the pid does not match', () => {
fs.writeFile(lockFilePath, '888');