Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 17, 2024
1 parent dd67af0 commit d4edfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/computed-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cy.get('a')
```js skip
cy.get('selector')
.then(($el) => {
return window.getComputedStyle(el)
return window.getComputedStyle($el[0])
})
.invoke('getPropertyValue', 'text-decoration')
// yields the string
Expand Down

0 comments on commit d4edfcd

Please sign in to comment.