DaftMonk / angular-tour

AngularJS directive for giving an interactive tour of your website.
http://daftmonk.github.io/angular-tour/
MIT License
608 stars 137 forks source link

Remove jQuery Dependency - TESTS PENDING #69

Closed david-meza closed 8 years ago

david-meza commented 8 years ago

Self explanatory. This library now works without the need of jQuery. As of now all tests are failing because they are still depending on jQuery, but I was hoping that PR could come from another kind soul :). I guess you could make the tests dependent on jQuery (tests 1-29 were all passing, 30 failing then) but I did not want to make that decision. Let me know which things I should change or change back before we can merge to master!

booleanbetrayal commented 8 years ago

hey @david-meza - would love to see this get in, but can't merge it without fixed tests. unfortunately, i don't have any time to dedicate to this project short of reviewing PRs. let me know if you're able to get those tests passing!

david-meza commented 8 years ago

I understand. I'll try to re-write those when I get a chance although it may take some time.

david-meza commented 8 years ago

Hi! Just wanted to give an update. I have fixed all tests that use jQuery and 29/30 tests are passing. I spent like 2+ hours trying to get the last test to pass but couldn't it figure to save my life. The scrollTo service works as intended in development mode, but when in the test mode the function inside $interval does not even get called. I tried logging things, and that's where it breaks. As I understand, the implementation of $interval for ngMocks is different than the real one. Am I missing some dependency that I should inject? I don't do a lot of testing, so I'm not sure how to fix this. If someone could take a look at it, that'd be greatly appreciated. Thanks!

booleanbetrayal commented 8 years ago

did you mean to close this @david-meza ? let me know if you plan on re-opening another PR or something.

david-meza commented 8 years ago

I opened another PR that uses a feature branch so I can still work in the master branch if I need to @booleanbetrayal