@@ -11,6 +11,7 @@ import { MockedProvider } from '@apollo/react-testing';
11
11
import { UPDATE_USER_MUTATION } from 'GraphQl/Mutations/mutations' ;
12
12
import { StaticMockLink } from 'utils/StaticMockLink' ;
13
13
import useLocalStorage from 'utils/useLocalstorage' ;
14
+ import { describe , expect , it } from 'vitest' ;
14
15
// import { Provider } from 'react-redux';
15
16
// import { store } from 'state/store';
16
17
const { setItem } = useLocalStorage ( ) ;
@@ -52,7 +53,7 @@ const MOCKS = [
52
53
53
54
const link = new StaticMockLink ( MOCKS , true ) ;
54
55
describe ( 'Testing Change Language Dropdown' , ( ) => {
55
- test ( 'Component Should be rendered properly' , async ( ) => {
56
+ it ( 'Component Should be rendered properly' , async ( ) => {
56
57
const { getByTestId } = render (
57
58
< MockedProvider addTypename = { false } link = { link } >
58
59
< BrowserRouter >
@@ -81,7 +82,7 @@ describe('Testing Change Language Dropdown', () => {
81
82
} ) ;
82
83
} ) ;
83
84
84
- test ( 'Component Should accept props properly' , async ( ) => {
85
+ it ( 'Component Should accept props properly' , async ( ) => {
85
86
const props = {
86
87
parentContainerStyle : 'parentContainerStyle' ,
87
88
btnStyle : 'btnStyle' ,
@@ -103,7 +104,7 @@ describe('Testing Change Language Dropdown', () => {
103
104
getByTestId ( 'dropdown-btn-0' ) . className . includes ( props . btnTextStyle ) ;
104
105
} ) ;
105
106
106
- test ( 'Testing when language cookie is not set' , async ( ) => {
107
+ it ( 'Testing when language cookie is not set' , async ( ) => {
107
108
Object . defineProperty ( window . document , 'cookie' , {
108
109
writable : true ,
109
110
value : 'i18next=' ,
@@ -121,7 +122,7 @@ describe('Testing Change Language Dropdown', () => {
121
122
expect ( cookies . get ( 'i18next' ) ) . toBe ( '' ) ;
122
123
} ) ;
123
124
124
- test ( 'Testing change language functionality' , async ( ) => {
125
+ it ( 'Testing change language functionality' , async ( ) => {
125
126
Object . defineProperty ( window . document , 'cookie' , {
126
127
writable : true ,
127
128
value : 'i18next=sp' ,
0 commit comments