Skip to content

Commit b44f764

Browse files
chore(nodejs): Add system-test/fixtures to .eslintignore (#1170)
* fix: Add `system-test/fixtures` to `.eslintignore` * refactor: Use `**` Source-Link: googleapis/synthtool@b7858ba Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:abc68a9bbf4fa808b25fa16d3b11141059dc757dbc34f024744bba36c200b40f Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 251bc67 commit b44f764

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build/
55
docs/
66
protos/
77
samples/generated/
8+
system-test/**/fixtures

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
16-
digest: sha256:8b6a07a38d1583d96b6e251ba208bd4ef0bc2a0cc37471ffc518841651d15bd6
17-
# created: 2023-09-25T22:18:27.595486267Z
16+
digest: sha256:abc68a9bbf4fa808b25fa16d3b11141059dc757dbc34f024744bba36c200b40f
17+
# created: 2023-10-04T20:56:40.710775365Z

system-test/datastore.ts

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ async.each(
357357
const query = defaultDatastore
358358
.createQuery('Post')
359359
.hasAncestor(postKey);
360-
const [defaultDatastoreResults] = await defaultDatastore.runQuery(
361-
query
362-
);
360+
const [defaultDatastoreResults] =
361+
await defaultDatastore.runQuery(query);
363362
assert.strictEqual(defaultDatastoreResults.length, 1);
364363
const [entity] = await defaultDatastore.get(postKey);
365364
assert.strictEqual(entity.author, 'Silvano');
@@ -368,9 +367,8 @@ async.each(
368367
namespace,
369368
databaseId: SECOND_DATABASE_ID,
370369
});
371-
const [secondDatastoreResults] = await otherDatastore.runQuery(
372-
query
373-
);
370+
const [secondDatastoreResults] =
371+
await otherDatastore.runQuery(query);
374372
assert.strictEqual(secondDatastoreResults.length, 0);
375373
const [otherEntity] = await otherDatastore.get(postKey);
376374
assert(typeof otherEntity === 'undefined');
@@ -383,13 +381,11 @@ async.each(
383381
const query = defaultDatastore
384382
.createQuery('Post')
385383
.hasAncestor(postKey);
386-
const [defaultDatastoreResults] = await defaultDatastore.runQuery(
387-
query
388-
);
384+
const [defaultDatastoreResults] =
385+
await defaultDatastore.runQuery(query);
389386
assert.strictEqual(defaultDatastoreResults.length, 0);
390-
const [originalSecondaryResults] = await defaultDatastore.runQuery(
391-
query
392-
);
387+
const [originalSecondaryResults] =
388+
await defaultDatastore.runQuery(query);
393389
assert.strictEqual(originalSecondaryResults.length, 0);
394390
const [entity] = await defaultDatastore.get(postKey);
395391
assert(typeof entity === 'undefined');
@@ -399,9 +395,8 @@ async.each(
399395
databaseId: SECOND_DATABASE_ID,
400396
});
401397
await otherDatastore.save({key: postKey, data: post});
402-
const [secondDatastoreResults] = await otherDatastore.runQuery(
403-
query
404-
);
398+
const [secondDatastoreResults] =
399+
await otherDatastore.runQuery(query);
405400
assert.strictEqual(secondDatastoreResults.length, 1);
406401
const [originalResults] = await defaultDatastore.runQuery(query);
407402
assert.strictEqual(originalResults.length, 0);
@@ -452,9 +447,8 @@ async.each(
452447
const query = defaultDatastore
453448
.createQuery('Post')
454449
.hasAncestor(defaultPostKey);
455-
const [defaultDatastoreResults] = await defaultDatastore.runQuery(
456-
query
457-
);
450+
const [defaultDatastoreResults] =
451+
await defaultDatastore.runQuery(query);
458452
assert.strictEqual(defaultDatastoreResults.length, 1);
459453
assert.strictEqual(
460454
defaultDatastoreResults[0].author,

0 commit comments

Comments
 (0)