UNPKG
ember-emotion
Version:
latest (5.0.0)
5.0.0
4.0.3
4.0.2
4.0.1
4.0.0
3.0.0
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
Work with emotion.js in Ember
alexlafroscia.com/ember-emotion/
alexlafroscia/ember-emotion
ember-emotion
/
addon-test-support
/
styles-for.js
10 lines
(6 loc)
•
214 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ find }
from
'@ember/test-helpers'
;
const
{ getComputedStyle } =
window
;
export
default
async
function
stylesFor
(
selector
) {
const
element =
await
find
(selector);
return
getComputedStyle
(element); }