Skip to content

Commit

Permalink
fixing test and upgrade version from v0.0.3 to v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
restuwahyu13 committed Jun 5, 2022
1 parent 4b8763f commit 18e6335
Show file tree
Hide file tree
Showing 3 changed files with 3,502 additions and 4,729 deletions.
6 changes: 3 additions & 3 deletions __test__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NodeDiskStorage } from '../dist'
describe('Node Disk Storage Group Testing', function () {
let nds

beforeAll(async () => {
beforeAll(() => {
nds = new NodeDiskStorage()
})

Expand All @@ -24,11 +24,11 @@ describe('Node Disk Storage Group Testing', function () {
}, 500)
})

it('Should be nds keys is success', async () => {
it('Should be nds keys is success', () => {
setTimeout(async () => {
expect(nds.keys).toBeDefined()
expect(await nds.keys()).toBeInstanceOf(Array)
expect(await nds.keys()).toStrictEqual(['name', 'age'])
expect((await nds.keys()).length).toBe(2)
}, 500)
})

Expand Down
Loading

0 comments on commit 18e6335

Please sign in to comment.