@@ -7,62 +7,63 @@ describe('angular config', () => {
77 const { setup, teardown, loadConfig } = createLintUtils ( 'angular' ) ;
88
99 beforeAll ( setup ) ;
10+
1011 afterAll ( teardown ) ;
1112
12- test ( 'should load config for TypeScript file' , async ( ) => {
13+ it ( 'should load config for TypeScript file' , async ( ) => {
1314 await expect ( loadConfig ( 'src/app/app.component.ts' ) ) . resolves . not . toThrow ( ) ;
1415 } ) ;
1516
16- test ( 'should load config for HTML file' , async ( ) => {
17+ it ( 'should load config for HTML file' , async ( ) => {
1718 await expect (
1819 loadConfig ( 'src/app/app.component.html' ) ,
1920 ) . resolves . not . toThrow ( ) ;
2021 } ) ;
2122
22- test ( 'should not include template rules for non-HTML file' , async ( ) => {
23+ it ( 'should not include template rules for non-HTML file' , async ( ) => {
2324 const config = await loadConfig ( 'src/app/app.component.ts' ) ;
2425 expect ( Object . keys ( config . rules ?? { } ) . join ( ',' ) ) . not . toContain (
2526 '@angular-eslint/template/' ,
2627 ) ;
2728 } ) ;
2829
29- test ( 'should have explicitly added rule for TS file' , async ( ) => {
30+ it ( 'should have explicitly added rule for TS file' , async ( ) => {
3031 const config = await loadConfig ( 'src/app/app.component.ts' ) ;
3132 expect ( config . rules ) . toHaveProperty (
3233 '@angular-eslint/prefer-on-push-component-change-detection' ,
3334 ) ;
3435 } ) ;
3536
36- test ( 'should have explicitly added rule for HTML file' , async ( ) => {
37+ it ( 'should have explicitly added rule for HTML file' , async ( ) => {
3738 const config = await loadConfig ( 'src/app/app.component.html' ) ;
3839 expect ( config . rules ) . toHaveProperty ( '@angular-eslint/template/no-any' ) ;
3940 } ) ;
4041
41- test ( 'should have rule from extended typescript config' , async ( ) => {
42+ it ( 'should have rule from extended typescript config' , async ( ) => {
4243 const config = await loadConfig ( 'src/app/app.component.ts' ) ;
4344 expect ( config . rules ) . toHaveProperty (
4445 '@typescript-eslint/no-non-null-assertion' ,
4546 ) ;
4647 } ) ;
4748
48- test ( 'should have rule from extended recommended angular config' , async ( ) => {
49+ it ( 'should have rule from extended recommended angular config' , async ( ) => {
4950 const config = await loadConfig ( 'src/app/app.component.ts' ) ;
5051 expect ( config . rules ) . toHaveProperty ( '@angular-eslint/contextual-lifecycle' ) ;
5152 } ) ;
5253
53- test ( 'should have rule from extended recommended angular template config' , async ( ) => {
54+ it ( 'should have rule from extended recommended angular template config' , async ( ) => {
5455 const config = await loadConfig ( 'src/app/app.component.html' ) ;
5556 expect ( config . rules ) . toHaveProperty (
5657 '@angular-eslint/template/banana-in-box' ,
5758 ) ;
5859 } ) ;
5960
60- test ( 'should have rule from extended angular template accessibility config' , async ( ) => {
61+ it ( 'should have rule from extended angular template accessibility config' , async ( ) => {
6162 const config = await loadConfig ( 'src/app/app.component.html' ) ;
6263 expect ( config . rules ) . toHaveProperty ( '@angular-eslint/template/alt-text' ) ;
6364 } ) ;
6465
65- test ( 'should have rule disabled if test file pattern matches' , async ( ) => {
66+ it ( 'should have rule disabled if test file pattern matches' , async ( ) => {
6667 const config = await loadConfig (
6768 'src/app/components/accordion/accordion.component.stories.ts' ,
6869 ) ;
0 commit comments