Skip to content

Commit

Permalink
test: add test save/load session
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Apr 30, 2024
1 parent 817eff6 commit ad5c43b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ node_modules/
build/
*.bin
*.gguf
coverage/
coverage/
tmp.sess
2 changes: 2 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ it('work fine', async () => {
await waitForExpect(() => {
expect(tokens).toBe(result.text)
})
await model.saveSession(path.resolve(__dirname, './tmp.sess'))
await model.loadSession(path.resolve(__dirname, './tmp.sess'))
await model.release()
})

0 comments on commit ad5c43b

Please sign in to comment.