Skip to content

Commit 83c2820

Browse files
authored
Merge pull request #1988 from Northeastern-Electric-Racing/#1499-remove-any-from-AppContext.Test.Tsx
#1499: replaced instances of 'any' in AppContext.test.tsx
2 parents e15186f + 7a5f5fc commit 83c2820

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/frontend/src/tests/app/AppContext.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AppContext from '../../app/AppContext';
99
vi.mock('../../app/AppContextQuery', () => {
1010
return {
1111
__esModule: true,
12-
default: (props: any) => {
12+
default: (props: { children: React.ReactNode }) => {
1313
return <div>app context query {props.children}</div>;
1414
}
1515
};
@@ -18,7 +18,7 @@ vi.mock('../../app/AppContextQuery', () => {
1818
vi.mock('../../app/AppContextAuth', () => {
1919
return {
2020
__esModule: true,
21-
default: (props: any) => {
21+
default: (props: { children: React.ReactNode }) => {
2222
return <div>app context auth {props.children}</div>;
2323
}
2424
};
@@ -27,7 +27,7 @@ vi.mock('../../app/AppContextAuth', () => {
2727
vi.mock('../../app/AppContextTheme', () => {
2828
return {
2929
__esModule: true,
30-
default: (props: any) => {
30+
default: (props: { children: React.ReactNode }) => {
3131
return <div>app context theme {props.children}</div>;
3232
}
3333
};

0 commit comments

Comments
 (0)