Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
4
test/httpsRedirect/httpsRedirect.js
Normal file
4
test/httpsRedirect/httpsRedirect.js
Normal file
@ -0,0 +1,4 @@
|
||||
const httpsRedirect = () => {
|
||||
if (location.protocol !== 'https:') location.replace('https:
|
||||
};
|
||||
module.exports = httpsRedirect;
|
||||
Reference in New Issue
Block a user