From eb1450edeed6d3cb1cf7b0ede7e4db1e40df76ac Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 7 Jan 2018 18:34:55 -0500 Subject: [PATCH] Update Jest documentation (22.0.4) --- lib/docs/filters/jest/clean_html.rb | 2 +- lib/docs/scrapers/jest.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/jest/clean_html.rb b/lib/docs/filters/jest/clean_html.rb index 9d88383f..394316b6 100644 --- a/lib/docs/filters/jest/clean_html.rb +++ b/lib/docs/filters/jest/clean_html.rb @@ -18,7 +18,7 @@ module Docs end css('pre').each do |node| - node['data-language'] = node['class'][/language-(\w+)/, 1] + node['data-language'] = node['class'][/language-(\w+)/, 1] if node['class'] node.content = node.content end diff --git a/lib/docs/scrapers/jest.rb b/lib/docs/scrapers/jest.rb index 8112f69e..88712474 100644 --- a/lib/docs/scrapers/jest.rb +++ b/lib/docs/scrapers/jest.rb @@ -1,7 +1,7 @@ module Docs class Jest < UrlScraper self.type = 'jest' - self.release = '21.2.1' + self.release = '22.0.4' self.base_url = 'https://facebook.github.io/jest/docs/en/' self.root_path = 'getting-started.html' self.links = {