@@ -4,7 +4,7 @@ import { deleteNestedDataByPath, updateNestedDataByPath } from '../utils'
4
4
describe ( 'Utils tests' , ( ) => {
5
5
describe ( 'updatedNestedDataByPath' , ( ) => {
6
6
describe ( 'array' , ( ) => {
7
- it ( 'should update data correctly' , async ( ) => {
7
+ it ( 'should update data correctly' , ( ) => {
8
8
const oldData = [ 'one' , 'two' , 'three' ]
9
9
10
10
const newData = updateNestedDataByPath ( oldData , [ '1' ] , 'new' )
@@ -29,7 +29,7 @@ describe('Utils tests', () => {
29
29
} )
30
30
31
31
describe ( 'object' , ( ) => {
32
- it ( 'should update data correctly' , async ( ) => {
32
+ it ( 'should update data correctly' , ( ) => {
33
33
const oldData = { title : 'Hello world' , id : 1 , createdAt : '2021-01-01' }
34
34
35
35
const newData = updateNestedDataByPath (
@@ -58,7 +58,7 @@ describe('Utils tests', () => {
58
58
} )
59
59
60
60
describe ( 'set' , ( ) => {
61
- it ( 'should update data correctly' , async ( ) => {
61
+ it ( 'should update data correctly' , ( ) => {
62
62
const oldData = new Set ( [ 123 , 321 , 'hello' , 'world' ] )
63
63
64
64
const newData = updateNestedDataByPath ( oldData , [ '2' ] , 'hi' )
@@ -85,7 +85,7 @@ describe('Utils tests', () => {
85
85
} )
86
86
87
87
describe ( 'map' , ( ) => {
88
- it ( 'should update data correctly' , async ( ) => {
88
+ it ( 'should update data correctly' , ( ) => {
89
89
const oldData = new Map ( [
90
90
[ 'en' , 'hello' ] ,
91
91
[ 'fr' , 'bonjour' ] ,
@@ -113,7 +113,7 @@ describe('Utils tests', () => {
113
113
} )
114
114
115
115
describe ( 'nested data' , ( ) => {
116
- it ( 'should update data correctly' , async ( ) => {
116
+ it ( 'should update data correctly' , ( ) => {
117
117
/* eslint-disable cspell/spellchecker */
118
118
const oldData = new Map ( [
119
119
[
@@ -377,7 +377,7 @@ describe('Utils tests', () => {
377
377
} )
378
378
379
379
describe ( 'deleteNestedDataByPath' , ( ) => {
380
- it ( 'should delete item from array correctly' , async ( ) => {
380
+ it ( 'should delete item from array correctly' , ( ) => {
381
381
const oldData = [ 'one' , 'two' , 'three' ]
382
382
383
383
const newData = deleteNestedDataByPath ( oldData , [ '1' ] )
@@ -399,7 +399,7 @@ describe('Utils tests', () => {
399
399
` )
400
400
} )
401
401
402
- it ( 'should delete item from object correctly' , async ( ) => {
402
+ it ( 'should delete item from object correctly' , ( ) => {
403
403
const oldData = { title : 'Hello world' , id : 1 , createdAt : '2021-01-01' }
404
404
405
405
const newData = deleteNestedDataByPath ( oldData , [ 'createdAt' ] )
@@ -472,7 +472,7 @@ describe('Utils tests', () => {
472
472
} )
473
473
474
474
describe ( 'nested data' , ( ) => {
475
- it ( 'should delete nested items correctly' , async ( ) => {
475
+ it ( 'should delete nested items correctly' , ( ) => {
476
476
/* eslint-disable cspell/spellchecker */
477
477
const oldData = new Map ( [
478
478
[
0 commit comments