You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
expect(`log`).toeq(["Warning: Failed propType: In component `Foo`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String"])
431
+
expect(`log[0]`).tomatch(/Warning: Failed prop( type|Type): In component `Foo`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String/)
expect(`log`).toeq(["Warning: Failed propType: In component `Foo2`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String"])
91
+
expect(`log[0]`).tomatch(/Warning: Failed prop( type|Type): In component `Foo2`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String/)
92
92
end
93
93
94
94
it'should not log anything if validation passes'do
@@ -134,7 +134,7 @@ def render; div; end
134
134
param:bar,type: []
135
135
end
136
136
renderToDocument(Foo,foo: 10,bar: [10])
137
-
expect(`window.dummy_log`).toeq(["Warning: Failed propType: In component `Foo`\nProvided prop `foo` could not be converted to Array"])
137
+
expect(`window.dummy_log[0]`).tomatch(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo` could not be converted to Array/)
138
138
end
139
139
140
140
it"can use the [xxx] notation for arrays of a specific type"do
@@ -143,7 +143,7 @@ def render; div; end
143
143
param:bar,type: [String]
144
144
end
145
145
renderToDocument(Foo,foo: [10],bar: ["10"])
146
-
expect(`window.dummy_log`).toeq(["Warning: Failed propType: In component `Foo`\nProvided prop `foo`[0] could not be converted to String"])
146
+
expect(`window.dummy_log[0]`).tomatch(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo`\[0\] could not be converted to String/)
0 commit comments