Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 7, 2023
1 parent 2f4a29d commit b12f384
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/single-threaded/openapi/convert.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs';
import fs from 'node:fs';

import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/single-threaded/openapi/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import fs from 'fs';
import fs from 'node:fs';

import chalk from 'chalk';
import config from 'config';
Expand Down
4 changes: 3 additions & 1 deletion __tests__/single-threaded/openapi/reduce.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import fs from 'fs';
import fs from 'node:fs';

import chalk from 'chalk';
import prompts from 'prompts';
Expand All @@ -16,6 +16,7 @@ const getCommandOutput = () => consoleInfoSpy.mock.calls.join('\n\n');

describe('rdme openapi:reduce (single-threaded)', () => {
let testWorkingDir: string;

beforeEach(() => {
consoleInfoSpy = vi.spyOn(console, 'info').mockImplementation(() => {});
testWorkingDir = process.cwd();
Expand Down Expand Up @@ -79,6 +80,7 @@ describe('rdme openapi:reduce (single-threaded)', () => {
expect(Object.keys(reducedSpec.paths)).toStrictEqual(['/user']);
});
});

describe('by path', () => {
it('should reduce with no prompts via opts', async () => {
const spec = 'petstore.json';
Expand Down
2 changes: 1 addition & 1 deletion __tests__/single-threaded/openapi/validate.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import fs from 'fs';
import fs from 'node:fs';

import chalk from 'chalk';
import prompts from 'prompts';
Expand Down

0 comments on commit b12f384

Please sign in to comment.