Browse Source

Fix get_latest_version of Jest

Enoc 4 năm trước cách đây
mục cha
commit
51c11307b2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/docs/scrapers/jest.rb

+ 2 - 2
lib/docs/scrapers/jest.rb

@@ -19,8 +19,8 @@ module Docs
     HTML
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://jestjs.io/docs/en/getting-started', opts)
-      doc.at_css('header > a > h3').content
+      doc = get_latest_github_release('facebook', 'jest', opts)
     end
+
   end
 end