Skip to content

Commit b505e23

Browse files
committed
refactor: deleteAppConfig to clearAppConfig
1 parent a83d1f4 commit b505e23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils/configs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ function _getAppConfig(file) {
3535
return _getValidatedConfig(appConfigFile.toString());
3636
}
3737

38-
export function deleteAppConfig() {
38+
export function clearAppConfig() {
3939
APP_CONFIG = null;
4040
}

test/unit/utils/configs-test.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*global describe, it*/
22
import * as chai from 'chai';
3-
import {deleteAppConfig, getConfigs} from "../../../src/utils/configs.js";
3+
import {clearAppConfig, getConfigs} from "../../../src/utils/configs.js";
44

55
let expect = chai.expect;
66

@@ -9,7 +9,7 @@ describe('unit Tests for config', function () {
99
it('verify config fail if APP_CONFIG not set properly', function () {
1010
const backEnv = process.env.APP_CONFIG;
1111
delete process.env.APP_CONFIG;
12-
deleteAppConfig();
12+
clearAppConfig();
1313
let exceptionOccurred = false;
1414
try {
1515
getConfigs();

0 commit comments

Comments
 (0)