Skip to content

Commit

Permalink
feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aarsilv committed Jan 2, 2025
1 parent cf42dba commit ecdd6ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class Evaluator {
configDetails.configFormat,
);
} catch (err: any) {
console.error('>>>>', err);
const flagEvaluationDetails = flagEvaluationDetailsBuilder.gracefulBuild(
'ASSIGNMENT_ERROR',
`Assignment Error: ${err.message}`,
Expand Down
4 changes: 3 additions & 1 deletion src/obfuscation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ describe('obfuscation', () => {
});

it('encodes/decodes special characters', () => {
const strings = ['kümmert', 'заботится', '照顾', '🤗🌸'];
const strings = ['kümmert', 'піклуватися', '照顾', '🤗🌸'];

strings.forEach((string) => {
expect(decodeBase64(encodeBase64(string))).toEqual(string);
expect(decodeBase64(encodeBase64(string))).toEqual(string);
});

expect(decodeBase64('a8O8bW1lcnQ=')).toEqual('kümmert');
});

describe('salt', () => {
Expand Down

0 comments on commit ecdd6ef

Please sign in to comment.