mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 02:42:13 +00:00
Added addional tests
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
3f5616ec29
commit
0b084833a3
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,2 +1 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
* text=auto eol=lf
|
||||
|
32
README.md
32
README.md
@ -1,3 +1,33 @@
|
||||
# Libs
|
||||
|
||||
Multi Packages repo containing libraries used through our websites
|
||||
Collection of libraries for differents usages
|
||||
|
||||
## Libraries
|
||||
|
||||
### DOM Manager
|
||||
|
||||
Library to manage the browser DOM easier
|
||||
|
||||
### Easy Sitemap
|
||||
|
||||
Sitemap Builder
|
||||
|
||||
### Listener
|
||||
|
||||
Custom implementation of the NodeJS Listener
|
||||
|
||||
### Logger
|
||||
|
||||
A nicer `console` with support for theming and prefixes
|
||||
|
||||
### Object Util
|
||||
|
||||
Functions that make it easier to manipulate objects
|
||||
|
||||
### Queue
|
||||
|
||||
A `async` Queue system to do heavy work quicker
|
||||
|
||||
### URL Manager
|
||||
|
||||
A complete URL parser/serializer
|
||||
|
@ -96,6 +96,21 @@ describe('Object sort Tests', () => {
|
||||
d: 'fourth'
|
||||
})
|
||||
})
|
||||
it('should sort by the specified key', () => {
|
||||
const obj = {
|
||||
b: 'first',
|
||||
a: 'second',
|
||||
c: 'zero',
|
||||
d: 'fourth'
|
||||
}
|
||||
// @ts-expect-error
|
||||
expect(objectSort(obj, ['c', 'a', 'e'])).toEqual({
|
||||
c: 'zero',
|
||||
a: 'second',
|
||||
b: 'first',
|
||||
d: 'fourth'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Object Clone Tests', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user