File tree Expand file tree Collapse file tree
packages/e2e/spec/pull-diff-push Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,9 +81,7 @@ export const pushWithNoSyncPolicyRoles = (context: Context) => {
8181 } ) ;
8282
8383 it ( 'should not dump role attachments on pull when --no-sync-policy-roles is set' , async ( ) => {
84- const sync = await context . getSync (
85- 'temp/pull-with-no-sync-policy-roles' ,
86- ) ;
84+ const sync = await context . getSync ( 'temp/pull-with-no-sync-policy-roles' ) ;
8785 const directus = context . getDirectus ( ) ;
8886 const client = directus . get ( ) ;
8987
@@ -109,11 +107,12 @@ export const pushWithNoSyncPolicyRoles = (context: Context) => {
109107 f . endsWith ( '.json' ) ,
110108 ) ;
111109 const dumped = await Promise . all (
112- files . map ( ( f ) =>
113- fs . readJSON ( path . join ( collectionsDir , f ) ) as Promise < {
114- name ?: string ;
115- roles ?: unknown [ ] ;
116- } > ,
110+ files . map (
111+ ( f ) =>
112+ fs . readJSON ( path . join ( collectionsDir , f ) ) as Promise < {
113+ name ?: string ;
114+ roles ?: unknown [ ] ;
115+ } > ,
117116 ) ,
118117 ) ;
119118 const ourPolicy = dumped . find ( ( p ) => p . name === policy . name ) ;
You can’t perform that action at this time.
0 commit comments