Skip to content

Commit b8b4862

Browse files
author
Alex Plischke
authored
fix: unreachable configuration (#2921)
1 parent 9d54632 commit b8b4862

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/sauce-docs-checker/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,22 +170,16 @@ function get_links(map,title) {
170170
}
171171

172172
async function parse_wiki_map() {
173-
let API_BASE_URL = `https://raw.githubusercontent.com/`;
174-
let url = API_BASE_URL+`saucelabs/sauce-docs/fix-link-checker-workflow/tests/sauce-docs-checker/map.conf`;
175-
let res = await axios.get(url);
176-
let text = res.data;
177-
// console.log(text);
173+
const text = fs.readFileSync('map.conf', 'utf-8')
178174
let arr = text.split('\n');
179175
for(let i=0;i<arr.length;i++) {
180176
let line = arr[i];
181177
if(line.startsWith(' /')) {
182178
line = line.trim().replace(';','').replace('\t',' ').replace(/\s+/g,' ');
183-
// console.log(line)
184179
let map = line.split(' ');
185180
let from = wiki_url + map[0];
186181
let to = 'https://' + map[1];
187182
wiki_map[from] = to;
188-
// console.log(from,'=>',to);
189183
}
190184
}
191185
}

0 commit comments

Comments
 (0)