Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

[WIP]: test: next #235

Merged
merged 34 commits into from
Jul 16, 2020
Merged

[WIP]: test: next #235

merged 34 commits into from
Jul 16, 2020

Conversation

koca
Copy link
Contributor

@koca koca commented Jun 7, 2020

exports everything from vtl
add tests for aspect ratio

to be continued

@vercel
Copy link

vercel bot commented Jun 7, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

@koca koca changed the title [WIP}: test: next [WIP]: test: next Jun 7, 2020
Comment on lines 17 to 37
/**
* Not sure if we need jest-emotion
*
* Get styles from document.styleSheets
* @param {String} selector
*/
function getElementStyles (selector) {
selector = new RegExp(selector)
let styles = []
let i; let j; let sel = selector
for (i = 0; i < document.styleSheets.length; ++i) {
for (j = 0; j < document.styleSheets[i].cssRules.length; ++j) {
if (sel.test(document.styleSheets[i].cssRules[j].selectorText)) {
// let selectorText = document.styleSheets[i].cssRules[j].selectorText
let cssText = document.styleSheets[i].cssRules[j].style.cssText
styles += cssText
}
}
}
return styles
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe i should add getElementStyles to test-utils
but i'm not sure...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a handy thing to have. I would also use this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved

@codebender828 codebender828 changed the base branch from master to develop June 29, 2020 03:36
@vercel vercel bot temporarily deployed to Preview July 2, 2020 18:28 Inactive
@vercel vercel bot temporarily deployed to Preview July 6, 2020 22:04 Inactive
@codebender828 codebender828 mentioned this pull request Jul 12, 2020
5 tasks
@codebender828 codebender828 merged commit 5349692 into develop Jul 16, 2020
@codebender828 codebender828 deleted the feature/test-next branch July 25, 2020 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants