In test/parallel/test-os.js
:
- Two instances of
==
that are better as===
- Several instances of
.indexOf()
that can be rewritten using.includes()
for more clarity - Bonus optional change: The
os
module has an undocumented and deprecated functionos.getNetworkInterfaces()
that is not tested at all. Write a minimal test for it.