Refactor lib/__tests__/integration.test.js
#5284
Merged
lib/__tests__/integration.test.js
#5284