mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
This reverts commit f38d6bd124.
This commit is contained in:
committed by
Paul Chaignon
parent
59d67d6743
commit
461c27c066
@@ -81,8 +81,7 @@ module Linguist
|
||||
generated_grammarkit? ||
|
||||
generated_roxygen2? ||
|
||||
generated_jison? ||
|
||||
generated_yarn_lock? ||
|
||||
generated_jest_snapshot?
|
||||
generated_yarn_lock?
|
||||
end
|
||||
|
||||
# Internal: Is the blob an Xcode file?
|
||||
@@ -490,15 +489,5 @@ module Linguist
|
||||
return false unless lines.count > 0
|
||||
return lines[0].include?("# THIS IS AN AUTOGENERATED FILE")
|
||||
end
|
||||
|
||||
# Internal: Is this a Jest [snapshot test](https://facebook.github.io/jest/docs/snapshot-testing.html)
|
||||
# file?
|
||||
#
|
||||
# Return true or false.
|
||||
def generated_jest_snapshot?
|
||||
return false unless extname == '.snap'
|
||||
return false unless lines.count > 0
|
||||
return lines[0].start_with?("// Jest Snapshot")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
15
test/fixtures/Data/Jest.js.snap
vendored
15
test/fixtures/Data/Jest.js.snap
vendored
@@ -1,15 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`View renders correctly 1`] = `
|
||||
<View
|
||||
style={
|
||||
Object {
|
||||
"alignItems": "center",
|
||||
"flex": 1,
|
||||
"margin": 40,
|
||||
"paddingLeft": 10,
|
||||
"paddingRight": 10,
|
||||
}
|
||||
}
|
||||
/>
|
||||
`;
|
||||
@@ -79,12 +79,9 @@ class TestGenerated < Minitest::Test
|
||||
generated_fixture_loading_data("Data/sourcemap.v3.map")
|
||||
generated_fixture_loading_data("Data/sourcemap.v1.map")
|
||||
|
||||
# Yarn lockfile
|
||||
# Yarn locfile
|
||||
generated_fixture_loading_data("Data/yarn.lock")
|
||||
|
||||
# Jest snapshot test
|
||||
generated_fixture_loading_data("Data/Jest.js.snap")
|
||||
|
||||
# Specflow
|
||||
generated_fixture_without_loading_data("Features/BindingCulture.feature.cs")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user