History

Fix get_latest_version of Jest

Enoc committed 5 years ago

Commit 51c11301 parent 5f8b24f1 file · +2 −2Browse files

Unified · Split

lib/docs/scrapers/jest.rb+2−2
@@ -19,8 +19,8 @@ module Docs · 18 unmodified lines
19 HTML19 HTML
20 20
21 def get_latest_version(opts)21 def get_latest_version(opts)
22 doc = fetch_doc('https://jestjs.io/docs/en/getting-started', opts)22 doc = get_latest_github_release('facebook', 'jest', opts)
23 doc.at_css('header > a > h3').content
24 end23 end
24
25 end25 end
26end26end