@@ -70,7 +70,7 @@ describe('@workgrid/client-react', () => {
70
70
} )
71
71
72
72
describe ( 'useWorkgridClient' , ( ) => {
73
- test ( 'will throw if used outside a WorkgirdProvider ' , ( ) => {
73
+ test ( 'will throw if used outside a WorkgridProvider ' , ( ) => {
74
74
const { result } = renderHook ( ( ) => useWorkgridClient ( ) , { wrapper : undefined } )
75
75
76
76
expect ( result . error ) . toMatchInlineSnapshot ( `[Error: useWorkgridClient must be within a WorkgridProvider]` )
@@ -84,7 +84,7 @@ describe('@workgrid/client-react', () => {
84
84
} )
85
85
86
86
describe ( 'useQuery' , ( ) => {
87
- test ( 'will throw if used outside a WorkgirdProvider ' , ( ) => {
87
+ test ( 'will throw if used outside a WorkgridProvider ' , ( ) => {
88
88
const { result } = renderHook ( ( ) => useQuery ( [ 'getNotification' , { spaceId : 'space-id' , id : '1234' } ] ) , {
89
89
wrapper : undefined ,
90
90
} )
@@ -107,7 +107,7 @@ describe('@workgrid/client-react', () => {
107
107
} )
108
108
109
109
describe ( 'useCustomQuery' , ( ) => {
110
- test ( 'will throw if used outside a WorkgirdProvider ' , ( ) => {
110
+ test ( 'will throw if used outside a WorkgridProvider ' , ( ) => {
111
111
const { result } = renderHook ( ( ) => useCustomQuery ( 'query-key' ) , { wrapper : undefined } )
112
112
113
113
expect ( result . error ) . toMatchInlineSnapshot ( `[Error: useCustomQuery must be within a WorkgridProvider]` )
@@ -128,7 +128,7 @@ describe('@workgrid/client-react', () => {
128
128
} )
129
129
130
130
describe ( 'useMutation' , ( ) => {
131
- test ( 'will throw if used outside a WorkgirdProvider ' , ( ) => {
131
+ test ( 'will throw if used outside a WorkgridProvider ' , ( ) => {
132
132
const { result } = renderHook ( ( ) => useMutation ( 'notificationViewed' ) , { wrapper : undefined } )
133
133
134
134
expect ( result . error ) . toMatchInlineSnapshot ( `[Error: useMutation must be within a WorkgridProvider]` )
@@ -153,7 +153,7 @@ describe('@workgrid/client-react', () => {
153
153
} )
154
154
155
155
describe ( 'useCustomMutation' , ( ) => {
156
- test ( 'will throw if used outside a WorkgirdProvider ' , ( ) => {
156
+ test ( 'will throw if used outside a WorkgridProvider ' , ( ) => {
157
157
const { result } = renderHook ( ( ) => useCustomMutation ( 'mutation-key' ) , { wrapper : undefined } )
158
158
159
159
expect ( result . error ) . toMatchInlineSnapshot ( `[Error: useCustomMutation must be within a WorkgridProvider]` )
0 commit comments