Skip to content

Commit 1c66093

Browse files
committed
using ignore istanbul as same as injectProxy
1 parent 5a222e8 commit 1c66093

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ import Correios from './correios'
33
import ViaCep from './viacep'
44
import { PROXY_URL } from '../utils/consts'
55

6+
/* istanbul ignore next */
67
function isBrowser(){
78
return typeof window !== 'undefined';
89
}
910

11+
/* istanbul ignore next */
1012
function isHttps(){
1113
return typeof location !== 'undefined' && location.protocol === 'https:'
1214
}
1315

16+
/* istanbul ignore next */
1417
function shouldUseProxy(){
1518
return isBrowser() && !isHttps()
1619
}

0 commit comments

Comments
 (0)