Skip to content

Commit 253e80b

Browse files
committed
chore: satisfy the license header and formatting rules
Restores the single-space separator lines the header rule expects in the new test file, collapses one argument prettier wants on a single line, and re-pads a documentation table whose column narrowed when wrapperDialect became dialect.
1 parent 024904e commit 253e80b

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

docs/using-the-nodejs-wrapper/GlobalDatabases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Use the global cluster endpoint:
3333
| Parameter | Value | Notes |
3434
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
3535
| `clusterId` | `1` | See [clusterId parameter documentation](./ClusterId.md) |
36-
| `dialect` | `global-aurora-mysql` or `global-aurora-pg` | |
36+
| `dialect` | `global-aurora-mysql` or `global-aurora-pg` | |
3737
| `plugins` | `initialConnection,failover2,efm2` or<br>`initialConnection,gdbFailover,efm2` | Without connection pooling |
3838
| | `auroraConnectionTracker,initialConnection,failover2,efm2` or<br>`auroraConnectionTracker,initialConnection,gdbFailover,efm2` | With connection pooling |
3939
| `globalClusterInstanceHostPatterns` | `?.XYZ1.us-east-2.rds.amazonaws.com,?.XYZ2.us-west-2.rds.amazonaws.com` | See [documentation](./using-plugins/UsingTheFailover2Plugin.md) |
@@ -54,7 +54,7 @@ Use the cluster reader endpoint:
5454
| Parameter | Value | Notes |
5555
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
5656
| `clusterId` | `1` | Use the same value as writer connections |
57-
| `dialect` | `global-aurora-mysql` or `global-aurora-pg` | |
57+
| `dialect` | `global-aurora-mysql` or `global-aurora-pg` | |
5858
| `plugins` | `initialConnection,failover2,efm2` or<br>`initialConnection,gdbFailover,efm2` | Without connection pooling |
5959
| | `auroraConnectionTracker,initialConnection,failover2,efm2` or<br>`auroraConnectionTracker,initialConnection,gdbFailover,efm2` | With connection pooling |
6060
| `globalClusterInstanceHostPatterns` | Same as writer configuration | |

tests/unit/parse_instance_templates.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
3+
44
Licensed under the Apache License, Version 2.0 (the "License").
55
You may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
7-
7+
88
http://www.apache.org/licenses/LICENSE-2.0
9-
9+
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -134,9 +134,7 @@ describe("RdsUtils.parseInstanceTemplates", () => {
134134
});
135135

136136
it("mixes partitions and forms in one value", () => {
137-
const templates = parse(
138-
"?.abc.us-east-2.rds.amazonaws.com,?.def.rds.cn-north-1.amazonaws.com.cn,[us-gov-west-1]?.govHost"
139-
);
137+
const templates = parse("?.abc.us-east-2.rds.amazonaws.com,?.def.rds.cn-north-1.amazonaws.com.cn,[us-gov-west-1]?.govHost");
140138

141139
expect([...templates.keys()]).toEqual(["us-east-2", "cn-north-1", "us-gov-west-1"]);
142140
});

0 commit comments

Comments
 (0)