test: update test to assert require() and es6ify variables
Checklist
-
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
Tests
Description of change
Code and Learn change for test-require-extensions-main.js
- var => const
- assert test fixtures