test: Added more validations to setEncoding
Checklist
- [x ]
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes - [x ] commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
-
Added more strict validations to properly test setEncoding
-
Changed all var usage to const or let
-
Changed assert.equal to assert.strictEqual