doc/api: module syncBuiltinESMExports example fix
Fix failing code and add explanations of each assert.
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Fix incorrect assert expectations, add explanation of what each assert is verifying. Define assert so the example is self-contained.