Skip to content

Commit

Permalink
fix github action lint error in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Oct 16, 2024
1 parent 292a048 commit 2f9d5dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions packages/cadl-ranch-api/src/scenarios.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
KeyedMockApi,
KeyedMockApiDefinition,
KeyedMockRequestHandler,
MockApi,
MockApiDefinition,
PassByKeyScenario,
Expand All @@ -27,10 +26,7 @@ export function passOnSuccess(
* @param code Status code all endpoint should return
* @param apis Endpoint or List of endpoints for this scenario
*/
export function passOnCode(
code: number,
apis: MockApi | readonly MockApi[] | MockApiDefinition | readonly MockApiDefinition[],
): PassOnCodeScenario {
export function passOnCode(code: number, apis: MockApi | readonly MockApi[] | MockApiDefinition): PassOnCodeScenario {
return {
passCondition: "status-code",
code,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { passOnSuccess, json, MockApiDefinition, MockRequest } from "@azure-tools/cadl-ranch-api";
import { ScenarioMockApi } from "@azure-tools/cadl-ranch-api";
import { Mock } from "node:test";

export const Scenarios: Record<string, ScenarioMockApi> = {};
function createMockApiDefinitions(route: string, request: any, response: any): MockApiDefinition {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { passOnSuccess, json, MockRequest } from "@azure-tools/cadl-ranch-api";
import { ScenarioMockApi } from "@azure-tools/cadl-ranch-api";
import { Mock } from "node:test";

export const Scenarios: Record<string, ScenarioMockApi> = {};

Expand Down

0 comments on commit 2f9d5dc

Please sign in to comment.