Skip to content

Commit 51c1130

Browse files
committed
Fix get_latest_version of Jest
1 parent 5f8b24f commit 51c1130

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/docs/scrapers/jest.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Jest < UrlScraper
1919
HTML
2020

2121
def get_latest_version(opts)
22-
doc = fetch_doc('https://jestjs.io/docs/en/getting-started', opts)
23-
doc.at_css('header > a > h3').content
22+
doc = get_latest_github_release('facebook', 'jest', opts)
2423
end
24+
2525
end
2626
end

0 commit comments

Comments
 (0)