File tree 1 file changed +16
-13
lines changed
1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 2
2
import assert from 'assert' ;
3
3
import cheerio from 'cheerio' ;
4
4
5
- let urls = [
6
- {
7
- url : 'http://www.cnn.com/2016/11/05/middleeast/iraq-mosul-isis-offensive/' ,
8
- title : 'Iraqi troops storm town south of Mosul' ,
9
- } ,
10
- {
11
- url :
12
- 'https://www.cnn.com/2019/01/30/politics/trump-intel-chiefs-foreign-policy-iran-isis-north-korea/index.html' ,
13
- title :
14
- 'Trump chastises intel chiefs after they contradict him on Iran and claims of foreign policy success' ,
15
- } ,
16
- ] ;
17
-
18
5
// don't run this on CI b/c we want to avoid network requests
19
6
if (
20
7
process . env . CI ||
38
25
typeof Mercury === 'undefined' ? require ( '../dist/mercury' ) : Mercury ;
39
26
40
27
describe ( 'Is Mercury build working' , ( ) => {
28
+ let urls = [
29
+ {
30
+ url :
31
+ 'http://www.cnn.com/2016/11/05/middleeast/iraq-mosul-isis-offensive/' ,
32
+ title : `Iraqi troops storm town south of Mosul${
33
+ Merc . browser ? ' | CNN' : ''
34
+ } `,
35
+ } ,
36
+ {
37
+ url :
38
+ 'https://www.cnn.com/2019/01/30/politics/trump-intel-chiefs-foreign-policy-iran-isis-north-korea/index.html' ,
39
+ title : `Trump chastises intel chiefs after they contradict him on Iran and claims of foreign policy success${
40
+ Merc . browser ? ' | CNN Politics' : ''
41
+ } `,
42
+ } ,
43
+ ] ;
41
44
if ( Merc . browser ) {
42
45
const proxyUrl = 'http://localhost:3000/' ;
43
46
urls = urls . map ( article => ( {
You can’t perform that action at this time.
0 commit comments