Skip to content

Add project test #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
julianosaless opened this issue Jul 25, 2016 · 8 comments
Open

Add project test #3

julianosaless opened this issue Jul 25, 2016 · 8 comments
Assignees

Comments

@julianosaless
Copy link

No description provided.

@tympanix
Copy link
Owner

tympanix commented Aug 4, 2016

Because my module is primarily a visual component I can't imagine how unit tests would apply. Could you supply me with some reading material or frameworks I could use? :)

@julianosaless
Copy link
Author

@tympanix sorry for the delay, I can imagine some types of tests.
For example,

  When creating table-resize
    should have id in table
    should  have in every TH the div handle`
   When the resize happens in column
    should modify the width of the column

    when the minimun value for equas the value minimun table th
       should not modify the width of the column

About the structure of test you can use for example:
http://mochajs.org/
https://github.com/domenic/sinon-chai
Example the my application
https://github.com/julianosaless/management-store/tree/master/src/Store.WebApp/assets/es6/test

@tympanix anything and so send me a message !!!

@tympanix
Copy link
Owner

tympanix commented Aug 7, 2016

Awesome. I will work on some unit testing soon :)

@tympanix tympanix self-assigned this Aug 7, 2016
@2masbaali
Copy link

2masbaali commented Aug 29, 2016

Hello. is this resizeable work with rtl (right to left) direction? when I change my table direction to rtl this resizeable not work correctly. please help me. I really need to this component. thanks

@tympanix
Copy link
Owner

With the css style direction: rtl; the table behaves a bit abnormal. My suggestion is: use the OverflowResizer which works in this mode. If you need multiple resizers in your app you can easily implement your own implementation that works with your setup. Look in this folder to see how the existing resizers are implented - copy them and tweak them to your liking. I hope this helps

@2masbaali
Copy link

2masbaali commented Sep 1, 2016

thank you. but I found a solution that not need to implement a new factory. just we need replace "var diffX = newX - orgX" with "var diffX = orgX - newX;" and every thing will be ok.

@julianosaless
Copy link
Author

@tympanix I can working in this issue ?

@tympanix
Copy link
Owner

tympanix commented Sep 23, 2016

If you mean the unit testing i must admit it has been delayed because of studying and other projects. You are very welcome to contribute if you like 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants