Skip to content

Commit 293e290

Browse files
committed
remove and from hashSha256 error message and update related test
1 parent fa03a20 commit 293e290

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/roktManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export default class RoktManager {
344344
return await this.sha256Hex(normalizedValue);
345345
} catch (error) {
346346
const errorMessage = error instanceof Error ? error.message : String(error);
347-
this.logger.error(`Failed to hashSha256 and returning undefined: ${errorMessage}`);
347+
this.logger.error(`Failed to hashSha256, returning undefined: ${errorMessage}`);
348348
return undefined;
349349
}
350350
}

test/jest/roktManager.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('RoktManager', () => {
224224

225225
expect(result).toBeUndefined();
226226
expect(mockMPInstance.Logger.error).toHaveBeenCalledWith(
227-
expect.stringContaining('Failed to hashSha256 and returning undefined: Hash failed')
227+
expect.stringContaining('Failed to hashSha256, returning undefined: Hash failed')
228228
);
229229
});
230230

0 commit comments

Comments
 (0)