Skip to content

Commit afa982d

Browse files
committed
delete tests that are no longer relevant
1 parent 791bc52 commit afa982d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/integration/tests/plugins/policy.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,5 @@ model M {
170170
undefined
171171
)
172172
).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');
185173
});
186174
});

0 commit comments

Comments
 (0)