Skip to content

Commit f7439ec

Browse files
modifies check-build to differentiate between test env (#665)
Co-authored-by: John Holdun <[email protected]>
1 parent 6ffa1a7 commit f7439ec

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

scripts/check-build.test.js

+16-13
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
import assert from 'assert';
33
import cheerio from 'cheerio';
44

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-
185
// don't run this on CI b/c we want to avoid network requests
196
if (
207
process.env.CI ||
@@ -38,6 +25,22 @@ if (
3825
typeof Mercury === 'undefined' ? require('../dist/mercury') : Mercury;
3926

4027
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+
];
4144
if (Merc.browser) {
4245
const proxyUrl = 'http://localhost:3000/';
4346
urls = urls.map(article => ({

0 commit comments

Comments
 (0)