We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f251d4f commit 3c9e5a3Copy full SHA for 3c9e5a3
1 file changed
spec/react/dsl_spec.rb
@@ -251,12 +251,12 @@ def render
251
Foo.class_eval do
252
include React::Component
253
def render
254
- div(data: { foo: :bar }, aria: { foo_bar: :foo })
+ div(data: { foo: :bar }, aria: { label: "title" })
255
end
256
257
258
expect(Foo)
259
- .to render_static_html('<div data-foo="bar" aria-foo-bar="foo"></div>')
+ .to render_static_html('<div data-foo="bar" aria-label="title"></div>')
260
261
262
it 'should not convert a hash param to hyphenated html attributes if not in React::HASH_ATTRIBUTES' do
0 commit comments