angular-table-resize icon indicating copy to clipboard operation
angular-table-resize copied to clipboard

Add project test

Open julianosaless opened this issue 7 years ago • 8 comments

julianosaless avatar Jul 25 '16 14:07 julianosaless

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? :)

tympanix avatar Aug 04 '16 18:08 tympanix

@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 !!!

julianosaless avatar Aug 06 '16 13:08 julianosaless

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

tympanix avatar Aug 07 '16 14:08 tympanix

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

2masbaali avatar Aug 29 '16 10:08 2masbaali

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

tympanix avatar Aug 29 '16 13:08 tympanix

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.

2masbaali avatar Sep 01 '16 07:09 2masbaali

@Tympanix I can working in this issue ?

julianosaless avatar Sep 22 '16 19:09 julianosaless

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 👍

tympanix avatar Sep 23 '16 05:09 tympanix