Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
4
test3/httpsRedirect/httpsRedirect.js
Normal file
4
test3/httpsRedirect/httpsRedirect.js
Normal file
@ -0,0 +1,4 @@
|
||||
const httpsRedirect = () => {
|
||||
if (location.protocol !== 'https:') location.replace('https://' + location.href.split('//')[1]);
|
||||
};
|
||||
module.exports = httpsRedirect;
|
||||
8
test3/httpsRedirect/httpsRedirect.test.js
Normal file
8
test3/httpsRedirect/httpsRedirect.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const httpsRedirect = require('./httpsRedirect.js');
|
||||
|
||||
test('Testing httpsRedirect', () => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
expect(typeof httpsRedirect === 'function').toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user