Skip to content

Commit

Permalink
chore@small
Browse files Browse the repository at this point in the history
  • Loading branch information
selfrefactor committed Oct 23, 2024
1 parent 723b35f commit fdb9b59
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
6 changes: 5 additions & 1 deletion files/NEXT_VERSION_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rambdax export file should include js extension

https://github.com/ramda/types/pull/127/files
https://github.com/ramda/types/pull/122/files

release string.fn
---

## ABOVE IS IN PROGRESS
Expand Down Expand Up @@ -61,6 +61,10 @@ chech in to read for examples
}
},

---
https://zuplo.com/blog/2024/10/10/unlocking-the-power-of-json-patch
---
bench against https://romgrk.com/posts/optimizing-javascript#3-avoid-arrayobject-methods
---

export const getTestData = <K extends keyof TestData>(key: K) => {
Expand Down
17 changes: 14 additions & 3 deletions source/assocPath.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assocPathFn } from './assocPath.js'

test.only('happy', () => {
test('happy', () => {
const path = 'a.c.1'
const input = {
a : {
Expand Down Expand Up @@ -41,7 +41,7 @@ test('string can be used as path input', () => {

test('difference with ramda - doesn\'t overwrite primitive values with keys in the path', () => {
const obj = { a : 'str' }
const result = assocPath(
const result = assocPathFn(
[ 'a', 'b' ], 42, obj
)

Expand All @@ -55,7 +55,18 @@ test('difference with ramda - doesn\'t overwrite primitive values with keys in t
})
})

test('bug', () => {
test('bug 748', () => {
/*
https://github.com/selfrefactor/rambda/issues/748
*/
const obj = {};
let result = assocPathFn(['a', '2'], 3, obj)
let result1 = assocPath(['a', '2'], 3, obj)
console.log({result})
console.log(result1)
})

test('bug 524', () => {
/*
https://github.com/selfrefactor/rambda/issues/524
*/
Expand Down

0 comments on commit fdb9b59

Please sign in to comment.