Skip to content

Add unit tests for util.js - #24545

Merged
Johann-S merged 1 commit into
v4-devfrom
v4-dev-johann-unit-util
Oct 25, 2017
Merged

Johann-S merged 1 commit into
v4-devfrom
v4-dev-johann-unit-util

Conversation

@Johann-S

Copy link
Copy Markdown
Member

Util.js is wild used in our plugins so we should be sure if it works as expected or not

@Johann-S Johann-S added js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages labels Oct 25, 2017
@Johann-S
Johann-S requested a review from XhmikosR October 25, 2017 07:33

@XhmikosR XhmikosR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. How about testing all of our util functions?

@Johann-S
Johann-S force-pushed the v4-dev-johann-unit-util branch from bd459d6 to c953a25 Compare October 25, 2017 10:47
@Johann-S

Copy link
Copy Markdown
Member Author

I added more unit tests, the other methods are not very relevant (reflow which just return the element's offsetHeight, supportTransitionEnd always false on QUnit and triggerTransitionEnd which just trigger an event)

@Johann-S
Johann-S merged commit 9883270 into v4-dev Oct 25, 2017
@Johann-S
Johann-S deleted the v4-dev-johann-unit-util branch October 25, 2017 10:59
@mdo mdo mentioned this pull request Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants