File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
tests/integration/tests/plugins Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -170,17 +170,5 @@ model M {
170
170
undefined
171
171
)
172
172
) . toEqual ( { AND : [ { authorId : { equals : 'u2' } } , { published : true } ] } ) ;
173
-
174
- const content = fs . readFileSync ( path . join ( projectDir , 'out/policy.ts' ) , 'utf-8' ) ;
175
- expect ( content . replace ( / \s + / g, ' ' ) ) . toContain ( `function allowAll(): any { return true; }` ) ;
176
- expect ( content . replace ( / \s + / g, ' ' ) ) . toContain ( `function defaultTitle(): any { return 'Default Title'; }` ) ;
177
- expect ( content . replace ( / \s + / g, ' ' ) ) . toContain (
178
- `function currentUser(user: PermissionCheckerContext["user"]): any { return user?.id; }`
179
- ) ;
180
-
181
- // // Test direct alias function calls
182
- // expect((allowAll as Function)()).toEqual(true);
183
- // expect((defaultTitle as Function)()).toEqual('Default Title');
184
- // expect((currentUser as Function)({ id: 'u1' })).toEqual('u1');
185
173
} ) ;
186
174
} ) ;
You can’t perform that action at this time.
0 commit comments