Skip to content

Commit

Permalink
- instead of _
Browse files Browse the repository at this point in the history
  • Loading branch information
jbosse committed Jun 21, 2024
1 parent bf95fd9 commit e52a87b
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 33 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const axios = require("axios");

Check failure on line 1 in __tests__/fogbogz-client.test.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `"axios");` with `'axios')`
const FogBugzClient = require("../src/fogbugz_client");
const FogBugzClient = require("../src/fogbugz-client");

Check failure on line 2 in __tests__/fogbogz-client.test.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `"../src/fogbugz-client");` with `'../src/fogbugz-client')`

const postMock = jest.spyOn(axios, "post").mockImplementation();

Check failure on line 4 in __tests__/fogbogz-client.test.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `"post").mockImplementation();` with `'post').mockImplementation()`

Expand Down
8 changes: 4 additions & 4 deletions __tests__/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
const core = require('@actions/core');
const github = require("@actions/github");

const FogBugzClient = require("../src/fogbugz_client");
jest.mock("../src/fogbugz_client", () => jest.fn());
const FogBugzClient = require("../src/fogbugz-client");
jest.mock("../src/fogbugz-client", () => jest.fn());
const createCase = jest.fn();

const PlanviewClient = require("../src/planview_client");
jest.mock("../src/planview_client", () => jest.fn());
const PlanviewClient = require("../src/planview-client");
jest.mock("../src/planview-client", () => jest.fn());
const createCard = jest.fn();

const dependabotPr = require("./dependabot_pr_sample.json");
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const axios = require("axios");
const PlanviewClient = require("../src/planview_client");
const PlanviewClient = require("../src/planview-client");

const postMock = jest.spyOn(axios, "post").mockImplementation();

Expand Down
File renamed without changes.
File renamed without changes.
24 changes: 0 additions & 24 deletions __tests__/wait.test.ignore

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const core = require('@actions/core');
const github = require("@actions/github");
const FogBugzClient = require("./fogbugz_client");
const planview_client = require("./planview_client");
const FogBugzClient = require("./fogbugz-client");
const PlanviewClient = require("./planview-client");

async function run() {
core.debug("Running action");
Expand Down Expand Up @@ -35,7 +35,7 @@ async function run() {
core.debug(`fbt_result: ${JSON.stringify(fbt_result)}`);
if (fbt_result.success) {
core.setOutput("fogbugz_id", fbt_result.case.ixBug);
const pvc = new planview_client(core.getInput("planview_api_url"), core.getInput("planview_auth"));
const pvc = new PlanviewClient(core.getInput("planview_api_url"), core.getInput("planview_auth"));
const boardId = core.getInput("planview_board_id");
const laneId = core.getInput("planview_lane_id");
const typeId = core.getInput("planview_type_id");
Expand Down
File renamed without changes.

0 comments on commit e52a87b

Please sign in to comment.