@@ -4,7 +4,7 @@ import { deleteNestedDataByPath, updateNestedDataByPath } from '../utils'
44describe ( 'Utils tests' , ( ) => {
55 describe ( 'updatedNestedDataByPath' , ( ) => {
66 describe ( 'array' , ( ) => {
7- it ( 'should update data correctly' , async ( ) => {
7+ it ( 'should update data correctly' , ( ) => {
88 const oldData = [ 'one' , 'two' , 'three' ]
99
1010 const newData = updateNestedDataByPath ( oldData , [ '1' ] , 'new' )
@@ -29,7 +29,7 @@ describe('Utils tests', () => {
2929 } )
3030
3131 describe ( 'object' , ( ) => {
32- it ( 'should update data correctly' , async ( ) => {
32+ it ( 'should update data correctly' , ( ) => {
3333 const oldData = { title : 'Hello world' , id : 1 , createdAt : '2021-01-01' }
3434
3535 const newData = updateNestedDataByPath (
@@ -58,7 +58,7 @@ describe('Utils tests', () => {
5858 } )
5959
6060 describe ( 'set' , ( ) => {
61- it ( 'should update data correctly' , async ( ) => {
61+ it ( 'should update data correctly' , ( ) => {
6262 const oldData = new Set ( [ 123 , 321 , 'hello' , 'world' ] )
6363
6464 const newData = updateNestedDataByPath ( oldData , [ '2' ] , 'hi' )
@@ -85,7 +85,7 @@ describe('Utils tests', () => {
8585 } )
8686
8787 describe ( 'map' , ( ) => {
88- it ( 'should update data correctly' , async ( ) => {
88+ it ( 'should update data correctly' , ( ) => {
8989 const oldData = new Map ( [
9090 [ 'en' , 'hello' ] ,
9191 [ 'fr' , 'bonjour' ] ,
@@ -113,7 +113,7 @@ describe('Utils tests', () => {
113113 } )
114114
115115 describe ( 'nested data' , ( ) => {
116- it ( 'should update data correctly' , async ( ) => {
116+ it ( 'should update data correctly' , ( ) => {
117117 /* eslint-disable cspell/spellchecker */
118118 const oldData = new Map ( [
119119 [
@@ -377,7 +377,7 @@ describe('Utils tests', () => {
377377 } )
378378
379379 describe ( 'deleteNestedDataByPath' , ( ) => {
380- it ( 'should delete item from array correctly' , async ( ) => {
380+ it ( 'should delete item from array correctly' , ( ) => {
381381 const oldData = [ 'one' , 'two' , 'three' ]
382382
383383 const newData = deleteNestedDataByPath ( oldData , [ '1' ] )
@@ -399,7 +399,7 @@ describe('Utils tests', () => {
399399 ` )
400400 } )
401401
402- it ( 'should delete item from object correctly' , async ( ) => {
402+ it ( 'should delete item from object correctly' , ( ) => {
403403 const oldData = { title : 'Hello world' , id : 1 , createdAt : '2021-01-01' }
404404
405405 const newData = deleteNestedDataByPath ( oldData , [ 'createdAt' ] )
@@ -472,7 +472,7 @@ describe('Utils tests', () => {
472472 } )
473473
474474 describe ( 'nested data' , ( ) => {
475- it ( 'should delete nested items correctly' , async ( ) => {
475+ it ( 'should delete nested items correctly' , ( ) => {
476476 /* eslint-disable cspell/spellchecker */
477477 const oldData = new Map ( [
478478 [
0 commit comments