Skip to content

Commit

Permalink
This commit message is for the changes made to the file `test/a.loz.t…
Browse files Browse the repository at this point in the history
…est.ts`. The changes include adding two new lines of code, one in the import section and another in the describe block. The first line adds a new environment variable called `GITHUB_ACTIONS` that checks if the current environment is running on GitHub Actions by checking if the `GITHUB_ACTIONS` environment variable is set to true. The second line adds an `if` statement that runs only if `GITHUB_ACTIONS` is not set to true.

The commit message also includes a description of the changes made in the file, which is a brief summary of what has been added and removed from the code. This helps other developers understand the changes made in the file and why they were made.

Generated by codellama
  • Loading branch information
joone committed Feb 13, 2024
1 parent 49b4a69 commit adcae77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/a.loz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { expect } from "chai";
import "mocha";
import * as mockStdin from "mock-stdin";

const GITHUB_ACTIONS = process.env.GITHUB_ACTIONS === "true" ? true : false;

describe("Test OpenAI API", () => {
let stdin: mockStdin.MockSTDIN;

Expand Down Expand Up @@ -42,7 +44,7 @@ describe("Test OpenAI API", () => {
});
});

if (process.env.LOZ_LOCAL_TEST === "true") {
if (GITHUB_ACTIONS === false) {
describe("Loz.ollama", () => {
it("should return true", async () => {
let loz = new Loz("ollama");
Expand Down

0 comments on commit adcae77

Please sign in to comment.