Skip to content

Commit

Permalink
fix: remove unused fast-json-stable-stringify
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Sep 25, 2023
1 parent 7514d02 commit bdb6f5c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-unicorn": "^46.0.1",
"fast-json-stable-stringify": "^2.1.0",
"glob": "^10.3.3",
"http-terminator": "^3.2.0",
"husky": "^8.0.3",
Expand Down
1 change: 0 additions & 1 deletion test/integrations/testUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { globSync } from 'glob';
import { join } from 'path';
import { MockHttpCallsData, TestCaseData } from './testTypes';
import stringify from 'fast-json-stable-stringify';

export const getTestDataFilePaths = (dirPath: string, destination: string = ''): string[] => {
const globPattern = join(dirPath, '**', 'data.ts');
Expand Down
3 changes: 1 addition & 2 deletions test/testHelper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const path = require('path');
const stringify = require('fast-json-stable-stringify');

const getFuncTestData = (dirPath, filePath) => {
const fileData = fs.readFileSync(path.resolve(dirPath, filePath));
Expand All @@ -16,7 +15,7 @@ const setResponsesForMockAxiosAdapter = ({url, method, data, options}, {response
if (data) {
reqObj.data = data
}
responses.push(`{httpReq: ${stringify(reqObj)},httpRes: ${stringify(response)}},`)
responses.push(`{httpReq: ${JSON.stringify(reqObj)},httpRes: ${JSON.stringify(response)}},`)
}
}
module.exports = {
Expand Down

0 comments on commit bdb6f5c

Please sign in to comment.