@@ -5,9 +5,7 @@ import { UpdateTemplateMeta } from "api/typesGenerated"
5
5
import { Language as FooterFormLanguage } from "components/FormFooter/FormFooter"
6
6
import { MockTemplate } from "../../testHelpers/entities"
7
7
import { renderWithAuth } from "../../testHelpers/renderHelpers"
8
- import {
9
- getValidationSchema ,
10
- } from "./TemplateSettingsForm"
8
+ import { getValidationSchema } from "./TemplateSettingsForm"
11
9
import { TemplateSettingsPage } from "./TemplateSettingsPage"
12
10
import i18next from "i18next"
13
11
@@ -53,9 +51,7 @@ const fillAndSubmitForm = async ({
53
51
await userEvent . type ( displayNameField , display_name )
54
52
55
53
const descriptionLabel = t ( "descriptionLabel" , { ns : "templateSettingsPage" } )
56
- const descriptionField = await screen . findByLabelText (
57
- descriptionLabel ,
58
- )
54
+ const descriptionField = await screen . findByLabelText ( descriptionLabel )
59
55
await userEvent . clear ( descriptionField )
60
56
await userEvent . type ( descriptionField , description )
61
57
@@ -161,7 +157,9 @@ describe("TemplateSettingsPage", () => {
161
157
default_ttl_ms : 24 * 7 + 1 ,
162
158
}
163
159
const validate = ( ) => getValidationSchema ( ) . validateSync ( values )
164
- expect ( validate ) . toThrowError ( t ( "ttlMaxError" , { ns : "templateSettingsPage" } ) )
160
+ expect ( validate ) . toThrowError (
161
+ t ( "ttlMaxError" , { ns : "templateSettingsPage" } ) ,
162
+ )
165
163
} )
166
164
167
165
it ( "allows a description of 128 chars" , ( ) => {
@@ -181,6 +179,8 @@ describe("TemplateSettingsPage", () => {
181
179
"Nam quis nulla. Integer malesuada. In in enim a arcu imperdiet malesuada. Sed vel lectus. Donec odio urna, tempus molestie, port a" ,
182
180
}
183
181
const validate = ( ) => getValidationSchema ( ) . validateSync ( values )
184
- expect ( validate ) . toThrowError ( t ( "descriptionMaxError" , { ns : "templateSettingsPage" } ) )
182
+ expect ( validate ) . toThrowError (
183
+ t ( "descriptionMaxError" , { ns : "templateSettingsPage" } ) ,
184
+ )
185
185
} )
186
186
} )
0 commit comments