Skip to content

Commit c05c5cf

Browse files
committed
Fix import of EnvironmentUtils
1 parent dc4ceee commit c05c5cf

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/utilities/environment-utils.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import EnvUtils from "./environment-utils";
1+
import { EnvironmentUtils } from "./environment-utils";
22

33
describe("EnvironmentUtils", () => {
44
const originalEnv = process.env;
@@ -27,7 +27,7 @@ describe("EnvironmentUtils", () => {
2727
process.env = newEnv;
2828

2929
// Act
30-
const result = EnvUtils.isDevelopment();
30+
const result = EnvironmentUtils.isDevelopment();
3131

3232
// Assert
3333
expect(result).toBeTrue();
@@ -40,7 +40,7 @@ describe("EnvironmentUtils", () => {
4040
process.env = newEnv;
4141

4242
// Act
43-
const result = EnvUtils.isDevelopment();
43+
const result = EnvironmentUtils.isDevelopment();
4444

4545
// Assert
4646
expect(result).toBeFalse();
@@ -62,7 +62,7 @@ describe("EnvironmentUtils", () => {
6262
const fn = jest.fn();
6363

6464
// Act
65-
EnvUtils.runIfDevelopment(() => fn());
65+
EnvironmentUtils.runIfDevelopment(() => fn());
6666

6767
// Assert
6868
expect(fn).toHaveBeenCalled();
@@ -76,7 +76,7 @@ describe("EnvironmentUtils", () => {
7676
const fn = jest.fn();
7777

7878
// Act
79-
EnvUtils.runIfDevelopment(() => fn());
79+
EnvironmentUtils.runIfDevelopment(() => fn());
8080

8181
// Assert
8282
expect(fn).not.toHaveBeenCalled();

src/utilities/environment-utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ const runIfDevelopment = (fn: () => any): void => {
3030
// #region Export
3131
// -----------------------------------------------------------------------------------------
3232

33-
const EnvironmentUtils = {
33+
export const EnvironmentUtils = {
3434
isDevelopment,
3535
runIfDevelopment,
3636
};
3737

38-
export default EnvironmentUtils;
39-
4038
// #endregion Export

0 commit comments

Comments
 (0)