build: reformat repo to new clang@1.4.0 (#36613)

PR Close #36613
This commit is contained in:
Joey Perrott
2020-04-13 16:40:21 -07:00
committed by atscott
parent 5e80e7e216
commit 698b0288be
1160 changed files with 31667 additions and 24000 deletions

View File

@ -25,7 +25,9 @@ describe('nodejs file system', () => {
const zoneASpec = {
name: 'A',
onScheduleTask: (delegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, task: Task):
Task => { return delegate.scheduleTask(targetZone, task); }
Task => {
return delegate.scheduleTask(targetZone, task);
}
};
const zoneA = Zone.current.fork(zoneASpec);
spyOn(zoneASpec, 'onScheduleTask').and.callThrough();
@ -42,7 +44,9 @@ describe('nodejs file system', () => {
const zoneASpec = {
name: 'A',
onScheduleTask: (delegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, task: Task):
Task => { return delegate.scheduleTask(targetZone, task); }
Task => {
return delegate.scheduleTask(targetZone, task);
}
};
it('fs.watch has been patched as eventTask', (done) => {
@ -56,7 +60,9 @@ describe('nodejs file system', () => {
expect(zoneASpec.onScheduleTask).toHaveBeenCalled();
expect(Zone.current.name).toBe('A');
watcher.close();
unlink('testfile', () => { done(); });
unlink('testfile', () => {
done();
});
});
writeFile('testfile', 'test new content', () => {});
});
@ -74,7 +80,9 @@ describe('nodejs file system', () => {
expect(zoneASpec.onScheduleTask).toHaveBeenCalled();
expect(Zone.current.name).toBe('A');
unwatchFile('testfile');
unlink('testfile', () => { done(); });
unlink('testfile', () => {
done();
});
});
writeFile('testfile', 'test new content', () => {});
});
@ -92,7 +100,9 @@ describe('util.promisify', () => {
expect(r).toBe(true);
done();
},
err => { fail(`should not be here with error: ${err}`); });
err => {
fail(`should not be here with error: ${err}`);
});
});
it('fs.read should work with util.promisify', (done: DoneFn) => {