File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11const fs = require ( "fs" ) ;
2+ const { JSDOM } = require ( "jsdom" ) ;
23const dotenv = require ( "dotenv" ) ;
3- const cheerio = require ( "cheerio" ) ;
44
55dotenv . config ( ) ;
66
@@ -10,7 +10,8 @@ const user3 = process.env.USER3;
1010const user4 = process . env . USER4 ;
1111
1212const tapHtmlContent = fs . readFileSync ( "./tap-html.html" , "utf8" ) ;
13- const $ = cheerio . load ( tapHtmlContent ) ;
13+ const dom = new JSDOM ( tapHtmlContent ) ;
14+ const $ = require ( "jquery" ) ( dom . window ) ;
1415
1516const totalCount = $ ( ".nav a:nth-child(2)" )
1617 . text ( )
Original file line number Diff line number Diff line change 11const fs = require ( 'fs' ) ;
22const { App } = require ( '@slack/bolt' ) ;
3+ const { JSDOM } = require ( "jsdom" ) ;
34const dotenv = require ( 'dotenv' )
45dotenv . config ( )
56
6- // const cheerio = require('cheerio');
77const tapHtmlContent = fs . readFileSync ( './tap-html.html' , 'utf8' ) ;
88const report = `./tap-html.html`
9- // const $ = cheerio.load(tapHtmlContent);
10- // const tapHtmlContent = fs.readFileSync("./tap-html.html", "utf8");
11- const { JSDOM } = require ( "jsdom" ) ;
129const dom = new JSDOM ( tapHtmlContent ) ;
1310const $ = require ( "jquery" ) ( dom . window ) ;
1411
You can’t perform that action at this time.
0 commit comments