Commit 1887152
committed
Add unit tests for traversal and utility functions
- Implement tests for traversal methods: even, odd, first, last, find, filter, has, index, next, prev, and their respective variations.
- Create utility function tests for each, extend, isFunction, isPlainObject, isWindow, map, parseHTML, and each.
- Ensure all tests cover various scenarios including edge cases for empty collections and non-matching selectors.
- Set up Vitest configuration for testing environment and module resolution.1 parent 15c79c1 commit 1887152
148 files changed
Lines changed: 4312 additions & 2464 deletions
File tree
- src
- ajax
- ajax
- getpost
- getscript
- load
- param
- serialize
- attributes
- attr
- class
- css
- data
- hasclass
- prop
- removeprop
- show-hide
- val
- core
- dabby
- each
- get
- map
- dimensions
- offsetparent
- offset
- position
- scroll
- width-height
- events
- named
- on
- triggerhandler
- trigger
- internal
- camelise
- dasherise
- filternodes
- getevents
- getprop
- getval
- setcss
- manipulation
- clone
- empty
- html
- insertto
- insert
- remove
- replace
- text
- unwrap
- wrapall
- wrap
- traversal
- add
- children
- closest
- eq
- even
- filter
- find
- first
- has
- index
- last
- next-prev
- odd
- parents
- siblings
- slice
- utils
- each
- extend
- isfunction
- isplainobject
- iswindow
- map
- parsehtml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
| 286 | + | |
280 | 287 | | |
281 | | - | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
285 | | - | |
| 291 | + | |
| 292 | + | |
286 | 293 | | |
287 | 294 | | |
288 | 295 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments