Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pencils down turn in your tests (#61)
* 🚨 added karma config * add jQuery and jasmine jquery * 🚨 add test packages, add test commands * 🚧 stub in first tests WIP still trying to get the HTML injected * 📝 converted demos to CodePen, added demo section * 📝 phrasing for better line break * remove jQuery test resources * create test * convert all $q to native promises, add return to all resolve and rejects $q promises were causing some odd issues with tests. * 🚨 first passing test. create() * create now uses the element ID if one exists and no custom ID was passed in * 🚨 create() ID methods tested * add method to get all instances Helps with testing * 🚨 test that destroy works correctly * 🚨 test the new getAll method * 🚨 test next() * 🚨 test previous() * 🚨 verify next() works with wrap * 🚨 test previous() wrap * 🚨 test select() * 🚨 test cellSelect() with a selector string * 🚨 selectedIndex() * 🔥 remove unused instances, 🚨 spying on resize reposition and reloadCells * 🚨 test get() * 🚨 test getFirst * 🚨 test getByElement * 🚨 test prepend() * 🚨 fix new image url, cleanup spacing, test append() * 🚨 test insert() * 👕 removed magic number * 📚 Fixed incorrect copypasta method documentation * 🚨 test getCellElements() * 🚨 test remove() * 🚨 test selectedElement() * 🚨 test cells() * 🚨 test _getFlickityIndex() * 🚨 test _findObjectById, protect against missing element * 💄 use template strings * 👷 new build * 🚨 set up coveralls * 📝 add coveralls and circleci badges, add test docs * ⬆️ upgrade eslint loader to play nice with latest eslint * 🔥 remove unused globals * 🚨 test instance destruction on directive destruction * 💄 convert ' to ` for uniformity * 🔥 removed imagesLoaded import - it was not the correct lib - it should be the responsibility of the consuming app to load (otherwise it is loaded for everyone that doesn’t need it) * 🔥 no longer bundling Flickity inside angular-flickity * 👷 new build * 🔧 no longer bundling Flickity * 👷 new build * 🚨 test rejection of duplicate IDs * 🐛 fix bug if index not found, 💄 converted remaining ' to ` * 🚨 use custom IDs for easier debugging, test destroying missing instance * 🔥 no longer setting a default value that Flickity doesn't also default to * 💄 convert to template strings * 🔥 remove unused reject * ✨ fallback to true now that config may not have default * 💄 use native promises * 🔧 include nested spec files * better checks for wrapAround * 📝 change Int to number * check for disable after service call, switch to template strings * 🚨 test button disabling * 👷 new build * 🚨 better phrasing, cleanup * 🚨 test next directive disabling * 💄 simplified file names * added returns to each resolve/reject * 🚨 test previous ctrl ID setting * 🔥 remove unused option * 🚨 test next ctrl ID setting * 👷 new build * 🚨 test FlickityController * 📝 better install docs, moved dependencies under installation, cleanup
- Loading branch information