diff --git a/.gitignore b/.gitignore index 560cec8..aeab919 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules/ build/ *.bin *.gguf -coverage/ \ No newline at end of file +coverage/ +tmp.sess \ No newline at end of file diff --git a/test/index.test.ts b/test/index.test.ts index 5debbc7..e27ee26 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -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() })