Skip to content

Commit a4717e9

Browse files
committed
Change doublequotes to single quotes.
1 parent 984e6c9 commit a4717e9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

test/disableErrors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ var tests = {};
66

77
tests['getenv.disableErrors() should disable any errors'] = function() {
88
getenv.disableErrors();
9-
assert.strictEqual(getenv.string("url", "http://localhost"), 'http://localhost');
10-
assert(getenv.string("url"), undefined);
9+
assert.strictEqual(getenv.string('url', 'http://localhost'), 'http://localhost');
10+
assert(getenv.string('url'), undefined);
1111
};
1212

1313
tests['getenv.enableErrors() should enable errors'] = function () {
1414
getenv.enableErrors();
1515
assert.throws(function() {
16-
getenv.string("url");
16+
getenv.string('url');
1717
});
18-
assert.strictEqual(getenv.string("url", "http://localhost"), 'http://localhost');
18+
assert.strictEqual(getenv.string('url', 'http://localhost'), 'http://localhost');
1919
}
2020

2121
Object.keys(tests).forEach(function(key) {

test/fallbacks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var tests = {};
88
tests['getenv.disableFallbacks() makes relying on fallbacks an error'] = function() {
99
getenv.disableFallbacks();
1010
assert.throws(function() {
11-
getenv.string("url", "http://localhost");
11+
getenv.string('url', 'http://localhost');
1212
});
1313
getenv.enableFallbacks();
1414
};

test/getenv.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ process.env.TEST_GETENV_BOOL_ARRAY_INVALID1 = 'true, 1, true';
3535
process.env.TEST_GETENV_BOOL_ARRAY_INVALID2 = 'true, 1.2, true';
3636
process.env.TEST_GETENV_BOOL_ARRAY_INVALID3 = 'true, abc, true';
3737

38-
process.env.TEST_GETENV_URL_1 = "tcp://localhost:80";
39-
process.env.TEST_GETENV_URL_2 = "tcp://localhost:2993";
40-
process.env.TEST_GETENV_URL_3 = "http://192.162.22.11:2993";
38+
process.env.TEST_GETENV_URL_1 = 'tcp://localhost:80';
39+
process.env.TEST_GETENV_URL_2 = 'tcp://localhost:2993';
40+
process.env.TEST_GETENV_URL_3 = 'http://192.162.22.11:2993';
4141

4242
var tests = {};
4343

@@ -522,12 +522,12 @@ tests['getenv.multi([string/single/throw]) multiple env vars'] = function() {
522522
tests['getenv.url() valid input'] = function() {
523523

524524
var expected = [
525-
{hostname: "localhost", port: "80", protocol: "tcp:"},
526-
{hostname: "localhost", port: "2993", protocol: "tcp:"},
527-
{hostname: "192.162.22.11", port: "2993", protocol: "http:"},
525+
{hostname: 'localhost', port: '80', protocol: 'tcp:'},
526+
{hostname: 'localhost', port: '2993', protocol: 'tcp:'},
527+
{hostname: '192.162.22.11', port: '2993', protocol: 'http:'},
528528
];
529529

530-
var prefix = "TEST_GETENV_URL_";
530+
var prefix = 'TEST_GETENV_URL_';
531531

532532
expected.forEach(function(expectation, i) {
533533
var parsed = getenv.url(prefix + (i + 1));

0 commit comments

Comments
 (0)