File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
packages/plugin-eslint/src/lib Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,17 @@ describe('eslintPlugin', () => {
4646 } ) ;
4747
4848 // expect rule from extended base eslint.config.js
49- expect ( plugin . audits ) . toContainEqual (
50- expect . objectContaining < Audit > ( {
51- slug : expect . stringMatching ( / ^ n x - e n f o r c e - m o d u l e - b o u n d a r i e s / ) ,
52- title : expect . any ( String ) ,
53- description : expect . stringContaining ( 'sourceTag' ) ,
54- } ) ,
55- ) ;
56- // expect rule from nx-plugin project's eslint.config.js
57- expect ( plugin . audits ) . toContainEqual (
58- expect . objectContaining < Partial < Audit > > ( {
59- slug : 'nx-nx-plugin-checks' ,
60- } ) ,
49+ expect ( plugin . audits ) . toStrictEqual (
50+ expect . arrayContaining ( [
51+ expect . objectContaining < Audit > ( {
52+ slug : expect . stringMatching ( / ^ n x - e n f o r c e - m o d u l e - b o u n d a r i e s / ) ,
53+ title : expect . any ( String ) ,
54+ description : expect . stringContaining ( 'sourceTag' ) ,
55+ } ) ,
56+ expect . objectContaining < Partial < Audit > > ( {
57+ slug : 'nx-nx-plugin-checks' ,
58+ } ) ,
59+ ] ) ,
6160 ) ;
6261 } ) ;
6362
You can’t perform that action at this time.
0 commit comments