Skip to content

Commit d92e25c

Browse files
committed
Lint fixes
1 parent 9b173f5 commit d92e25c

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ exports.userAgent = userAgent;
511511
* @returns {string} host name
512512
*/
513513
exports.constructHostname = function (region, account) {
514-
if (region === "us-west-2") {
514+
if (region === 'us-west-2') {
515515
region = null;
516516
}
517517

test/unit/util_test.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -727,39 +727,39 @@ describe('Util', function () {
727727
}
728728
});
729729

730-
describe("Util.constructHostname", () => {
731-
it("works with undefined region", () => {
730+
describe('Util.constructHostname', () => {
731+
it('works with undefined region', () => {
732732
assert.strictEqual(
733-
Util.constructHostname(undefined, "abc123"),
734-
"abc123.snowflakecomputing.com"
733+
Util.constructHostname(undefined, 'abc123'),
734+
'abc123.snowflakecomputing.com'
735735
);
736736
});
737737

738-
it("adds region to the account", () => {
738+
it('adds region to the account', () => {
739739
assert.strictEqual(
740-
Util.constructHostname("us-west-1", "abc123"),
741-
"abc123.us-west-1.snowflakecomputing.com"
740+
Util.constructHostname('us-west-1', 'abc123'),
741+
'abc123.us-west-1.snowflakecomputing.com'
742742
);
743743
});
744744

745-
it("Skips region when it is us-west-2", () => {
745+
it('Skips region when it is us-west-2', () => {
746746
assert.strictEqual(
747-
Util.constructHostname("us-west-2", "abc123"),
748-
"abc123.snowflakecomputing.com"
747+
Util.constructHostname('us-west-2', 'abc123'),
748+
'abc123.snowflakecomputing.com'
749749
);
750750
});
751751

752-
it("Ignores the account region when a different region is specified", () => {
752+
it('Ignores the account region when a different region is specified', () => {
753753
assert.strictEqual(
754-
Util.constructHostname("us-east-2", "abc123.us-east-1"),
755-
"abc123.us-east-2.snowflakecomputing.com"
754+
Util.constructHostname('us-east-2', 'abc123.us-east-1'),
755+
'abc123.us-east-2.snowflakecomputing.com'
756756
);
757757
});
758758

759-
it("Uses account region when there is no other region specified", () => {
759+
it('Uses account region when there is no other region specified', () => {
760760
assert.strictEqual(
761-
Util.constructHostname(undefined, "abc123.us-east-1"),
762-
"abc123.us-east-1.snowflakecomputing.com"
761+
Util.constructHostname(undefined, 'abc123.us-east-1'),
762+
'abc123.us-east-1.snowflakecomputing.com'
763763
);
764764
});
765765
});

0 commit comments

Comments
 (0)