Skip to content

Commit dd9ad6e

Browse files
committed
Add test for Loz.init method
Generated by gpt-3.5-turbo
1 parent 5b03009 commit dd9ad6e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ export class Loz {
105105
this.llmAPI = new OpenAiAPI();
106106
this.config.set("api", "openai");
107107
}
108+
109+
return true;
108110
}
109111

110112
// load config from JSON file

tests/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ import { Loz } from "../src/index";
22
import { expect } from "chai";
33
import "mocha";
44

5+
describe("Loz.init", () => {
6+
it("should return true", () => {
7+
let loz = new Loz();
8+
9+
loz.init().then((result) => {
10+
expect(result).to.equal(true);
11+
});
12+
});
13+
});
14+
515
describe("Loz.chekcEnv()", () => {
616
it("should return true", () => {
717
let loz = new Loz();

0 commit comments

Comments
 (0)