Skip to content

Commit 8b45245

Browse files
committed
Fixed formatting
1 parent d6d2aaf commit 8b45245

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

packages/data-connect/src/network/transport/rest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class RESTTransport implements DataConnectTransport {
166166
body: U
167167
) => {
168168
const abortController = new AbortController();
169-
169+
170170
// TODO(mtewani): Update to proper value
171171
const withAuth = this.withRetry(() =>
172172
dcFetch<T, U>(

packages/data-connect/test/queries.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ describe('DataConnect Tests', async () => {
161161
);
162162
});
163163
it('throws an error with just the message when the server responds with an error', async () => {
164-
const invalidTaskListQuery = queryRef<PostListResponse>(dc, 'UnauthorizedQuery');
164+
const invalidTaskListQuery = queryRef<PostListResponse>(
165+
dc,
166+
'UnauthorizedQuery'
167+
);
165168
const message =
166169
'unauthorized: you are not authorized to perform this operation';
167170
await expect(

scripts/emulator-testing/emulators/dataconnect-emulator.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ export class DataConnectEmulator extends Emulator {
2626
let urlString = '';
2727
switch (os) {
2828
case 'darwin':
29-
urlString =
30-
`https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-macos-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
29+
urlString = `https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-macos-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
3130
break;
3231
case 'linux':
33-
urlString =
34-
`https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-linux-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
32+
urlString = `https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-linux-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
3533
break;
3634
case 'win32':
37-
urlString =
38-
`https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-windows-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
35+
urlString = `https://firebasestorage.googleapis.com/v0/b/firemat-preview-drop/o/emulator%2Fdataconnect-emulator-windows-v${DATACONNECT_EMULATOR_VERSION}?alt=media`;
3936
break;
4037
default:
4138
throw new Error(

scripts/emulator-testing/emulators/emulator.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ export abstract class Emulator {
125125

126126
findDataConnectConfigDir() {
127127
let path = './';
128-
const files = fs.readdirSync(path);
129-
console.log(files);
130-
if(files.includes('dataconnect')) {
131-
return path + 'dataconnect';
132-
}
133-
if(files.includes('test')) {
134-
return path + 'test/dataconnect';
135-
}
136-
throw new Error('Max Depth Exceeded. Please run from the data-connect/test folder');
137-
128+
const files = fs.readdirSync(path);
129+
if (files.includes('dataconnect')) {
130+
return path + 'dataconnect';
131+
}
132+
if (files.includes('test')) {
133+
return path + 'test/dataconnect';
134+
}
135+
throw new Error(
136+
'Max Depth Exceeded. Please run from the data-connect/test folder'
137+
);
138138
}
139139

140140
setUp(): Promise<void> {
@@ -145,16 +145,14 @@ export abstract class Emulator {
145145
let promise: ChildProcessPromise<SpawnPromiseResult>;
146146
if (this.isDataConnect) {
147147
const dataConnectConfigDir = this.findDataConnectConfigDir();
148-
const password = process.env['POSTGRES_PASSWORD']
148+
const password = process.env['POSTGRES_PASSWORD'];
149149
promise = spawn(this.binaryPath, [
150150
'--v=2',
151151
'dev',
152152
`--listen=127.0.0.1:${this.port},[::1]:${this.port}`,
153153
`--local_connection_string=postgresql://postgres:${password}@localhost:5432/dataconnect-integration?sslmode=disable`,
154-
`--config_dir=${dataConnectConfigDir}`,
154+
`--config_dir=${dataConnectConfigDir}`
155155
]);
156-
promise.childProcess.stdout?.on('data', console.log);
157-
promise.childProcess.stderr?.on('data', res => console.log(res.toString()));
158156
} else {
159157
promise = spawn(
160158
'java',

0 commit comments

Comments
 (0)