Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test for tranform function #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mayankshukla94
Copy link
Contributor

Added test function for transform function.

@@ -147,4 +147,24 @@ describe('Engine', () => {

expect(result).toBeNull();
});

it('returns masked string', () => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it('returns masked string', () => {
it('returns the masked string', () => {

Comment on lines +154 to +156
engine.aoo = {
tables: {},
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think even this should work?

Suggested change
engine.aoo = {
tables: {},
};
engine.aoo = {};

@@ -160,18 +160,18 @@ class Engine {
const [middleware, mapping] = transformers;
const passedRecord = middleware(record, columns!);
if (passedRecord) {
maskedData = this.#declarativeTransformation(passedRecord, mapping);
maskedData = this.declarativeTransformation(passedRecord, mapping);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this renamed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants