mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Revert "Check generated Jest snap file" (#3984)
* Revert "Remove Arduino as a language (#3933)" This reverts commit8e628ecc36. * Revert "Check generated Jest snap file (#3874)" This reverts commitca714340e8.
This commit is contained in:
		| @@ -62,7 +62,6 @@ module Linguist | ||||
|       npm_shrinkwrap_or_package_lock? || | ||||
|       godeps? || | ||||
|       generated_by_zephir? || | ||||
|       generated_jest_snap? || | ||||
|       minified_files? || | ||||
|       has_source_map? || | ||||
|       source_map? || | ||||
| @@ -526,12 +525,5 @@ module Linguist | ||||
|       return false unless lines.count > 1 | ||||
|       return lines[0].start_with?("// Generated by the gRPC") | ||||
|     end | ||||
|  | ||||
|     # Internal: Is this a snap file of Jest? | ||||
|     # | ||||
|     # Return true or false | ||||
|     def generated_jest_snap? | ||||
|       name.end_with?(".snap") && name.include?("__snapshots__") | ||||
|     end | ||||
|   end | ||||
| end | ||||
|   | ||||
| @@ -1,31 +0,0 @@ | ||||
| exports[`test renders regular button 1`] = ` | ||||
| <View | ||||
|   accessibilityComponentType={undefined} | ||||
|   accessibilityLabel={undefined} | ||||
|   accessibilityTraits={undefined} | ||||
|   accessible={true} | ||||
|   hitSlop={undefined} | ||||
|   onLayout={undefined} | ||||
|   onResponderGrant={[Function]} | ||||
|   onResponderMove={[Function]} | ||||
|   onResponderRelease={[Function]} | ||||
|   onResponderTerminate={[Function]} | ||||
|   onResponderTerminationRequest={[Function]} | ||||
|   onStartShouldSetResponder={[Function]} | ||||
|   style={ | ||||
|     Object { | ||||
|       "borderRadius": 2, | ||||
|       "opacity": 1, | ||||
|     } | ||||
|   } | ||||
|   testID={undefined}> | ||||
|   <View | ||||
|     style={ | ||||
|       Object { | ||||
|         "alignSelf": "center", | ||||
|         "zIndex": 999, | ||||
|       } | ||||
|     } /> | ||||
|   Test | ||||
| </View> | ||||
| `; | ||||
| @@ -115,8 +115,5 @@ 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user