-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Add unit test for tranform
function
#183
Conversation
@@ -147,4 +147,24 @@ describe('Engine', () => { | |||
|
|||
expect(result).toBeNull(); | |||
}); | |||
|
|||
it('returns masked string', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('returns masked string', () => { | |
it('returns the masked string', () => { |
engine.aoo = { | ||
tables: {}, | ||
}; |
There was a problem hiding this comment.
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?
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this renamed?
Added test function for
transform
function.