Check generated Jest snap file (#3874)

* Check generated Jest snap file

* Check file name rule first

ref: https://github.com/github/linguist/pull/3874/files#r146168309

* Check extension first

It must be cheaper
ref: https://github.com/github/linguist/pull/3874/files#r146168426
This commit is contained in:
Yuya Takeyama
2018-01-11 18:25:13 +09:00
committed by Colin Seymour
parent a4e6fc78c8
commit ca714340e8
3 changed files with 42 additions and 0 deletions

View File

@@ -115,5 +115,8 @@ class TestGenerated < Minitest::Test
# PostScript
generated_sample_loading_data("PostScript/lambda.pfa")
# Jest snap
generated_fixture_without_loading_data("Data/__snapshots__/Button.ios.js.snap")
end
end