Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Apr 26, 2024
1 parent 0c8a207 commit c523727
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/app/components/TagsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function TagsList({ tagsUrl, showUnselectAll = false, onUpdate }: TagsListProps)
useEffect(() => {
let isCancelled = false;

getTags(tagsUrl).then(tags => {
getTags(tagsUrl).then((tags: any) => {
if (!isCancelled) {
setAllTags(tags);
}
Expand Down
4 changes: 2 additions & 2 deletions client/app/services/axios.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { get, includes } from "lodash";
import axiosLib from "axios";
import { create } from "axios";
import createAuthRefreshInterceptor from "axios-auth-refresh";
import { Auth } from "@/services/auth";
import qs from "query-string";
import { restoreSession } from "@/services/restoreSession";

export const axios = axiosLib.create({
export const axios = create({
paramsSerializer: {
encode: value => value,
serialize: params => qs.stringify(params),
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@
],
"moduleNameMapper": {
"^@/(.*)": "<rootDir>/app/$1",
"\\.(css|less)$": "identity-obj-proxy"
"\\.(css|less)$": "identity-obj-proxy",
"^axios$": "axios/dist/node/axios.cjs"
},
"testPathIgnorePatterns": [
"<rootDir>/app/__tests__/"
Expand Down

0 comments on commit c523727

Please sign in to comment.