Takes an initial URL and verifies that it is redirected with the correct http status code to the correct new URL.
- install node.js
- change to folder with checked out source code in command prompt
- npm install
- node test.js [filepath/filename] [expectedhttpStatusCode]
- to run example: node test.js exampleFiles/exampleLinks.csv
arg | |
---|---|
[filename] | required |
[expectedhttpStatusCode] | optional - default is 301 |
Supported file extensions: .txt and .csv
Expected format in file:
initial link,expected link