Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Nov 27, 2021
1 parent b8106d1 commit a58867c
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 209 deletions.
8 changes: 4 additions & 4 deletions src/commondao/common.dao.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
AjvValidationError,
writableForEach,
_pipeline,
zipString,
unzipToString,
deflateString,
inflateToString,
} from '@naturalcycles/nodejs-lib'
import { InMemoryDB } from '../adapter/inmemory/inMemory.db'
import { DBLibError } from '../cnst'
Expand Down Expand Up @@ -321,13 +321,13 @@ test('zipping/unzipping via async hook', async () => {
async beforeBMToDBM(bm) {
return {
...bm,
obj: await zipString(JSON.stringify(bm.obj)),
obj: await deflateString(JSON.stringify(bm.obj)),
}
},
async beforeDBMToBM(dbm) {
return {
...dbm,
obj: JSON.parse(await unzipToString(dbm.obj)),
obj: JSON.parse(await inflateToString(dbm.obj)),
}
},
},
Expand Down
Loading

0 comments on commit a58867c

Please sign in to comment.