Skip to content

Commit

Permalink
Enable prefer-const in the eslint config (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and alexander-fenster committed Sep 20, 2018
1 parent a8ff588 commit ea35646
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ rules:
eqeqeq: error
no-warning-comments: warn
no-var: error
prefer-const: error
8 changes: 4 additions & 4 deletions samples/system-test/spanner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ test.serial(`should create query partitions`, async t => {
const [transaction] = await database.createBatchTransaction();
const identifier = JSON.stringify(transaction.identifier());

let results = await tools.runAsyncWithIO(
const results = await tools.runAsyncWithIO(
`${batchCmd} create-query-partitions ${INSTANCE_ID} ${DATABASE_ID} '${identifier}' ${PROJECT_ID}`,
cwd
);

let output = results.stdout + results.stderr;
const output = results.stdout + results.stderr;

t.regex(output, /Successfully created \d query partitions\./);

Expand All @@ -355,12 +355,12 @@ test.serial(`should execute a partition`, async t => {
const [partitions] = await transaction.createQueryPartitions(query);
const partition = JSON.stringify(partitions[0]);

let results = await tools.runAsyncWithIO(
const results = await tools.runAsyncWithIO(
`${batchCmd} execute-partition ${INSTANCE_ID} ${DATABASE_ID} '${identifier}' '${partition}' ${PROJECT_ID}`,
cwd
);

let output = results.stdout + results.stderr;
const output = results.stdout + results.stderr;

t.regex(output, /Successfully received \d from executed partition\./);

Expand Down

0 comments on commit ea35646

Please sign in to comment.