fix test code: Chrome browser supports `process` global object --> properly check for require function to detect node or browser environment
fix test code: Chrome browser supports `process` global object --> properly check for require function to detect node or browser environment

GerHobbelt/nprogress,GerHobbelt/nprogress,GerHobbelt/nprogress