Skip to content

Commit

Permalink
Fixing test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
harunalpak committed Dec 15, 2022
1 parent 91e4dc1 commit 5e92ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/Util.ts
Expand Up @@ -69,7 +69,7 @@ export function shuffleArray<T>(array: T[]): void {

/** @internal */
export function enumFromString<T>(enumType: any, value: string): T {
return enumType[value ? value.toUpperCase() : value];
return enumType[value.toUpperCase()];
}

/** @internal */
Expand Down
4 changes: 2 additions & 2 deletions test/unit/discovery/HazelcastCloudProviderTest.js
Expand Up @@ -19,7 +19,7 @@ const { expect } = require('chai');
const sinon = require('sinon');
const sandbox = sinon.createSandbox();

const { LogLevel, IllegalStateError } = require('../../../');
const { IllegalStateError } = require('../../../');
const { LoggingService } = require('../../../lib/logging/LoggingService');
const { AddressImpl } = require('../../../lib/core/Address');
const { HazelcastCloudAddressProvider } = require('../../../lib/discovery/HazelcastCloudAddressProvider');
Expand All @@ -37,7 +37,7 @@ describe('HazelcastCloudProviderTest', function () {
});

beforeEach(function () {
const logger = new LoggingService(null, LogLevel.INFO).getLogger();
const logger = new LoggingService(null, 'INFO').getLogger();
hazelcastCloudDiscovery = new HazelcastCloudDiscovery();
sandbox.stub(HazelcastCloudDiscovery.prototype, 'discoverNodes')
.callsFake(() => Promise.resolve(expectedAddresses));
Expand Down

0 comments on commit 5e92ece

Please sign in to comment.