Skip to content

Commit af3e8c1

Browse files
committed
addressing review comments
1 parent 6937a84 commit af3e8c1

File tree

7 files changed

+4
-32
lines changed

7 files changed

+4
-32
lines changed

packages/runtime/src/client/errors.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export class NotFoundError extends ZenStackError {
3737

3838
/**
3939
* Reason code for policy rejection.
40-
* @todo move to policy plugin package
4140
*/
4241
export enum RejectedByPolicyReason {
4342
/**
@@ -58,7 +57,6 @@ export enum RejectedByPolicyReason {
5857

5958
/**
6059
* Error thrown when an operation is rejected by access policy.
61-
* @todo move to policy plugin package
6260
*/
6361
export class RejectedByPolicyError extends ZenStackError {
6462
constructor(

tests/e2e/orm/policy/auth-equality.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { createPolicyTestClient } from '@zenstackhq/testtools';
12
import { describe, expect, it } from 'vitest';
2-
import { createPolicyTestClient } from './utils';
33

44
describe('Reference Equality Tests', () => {
55
it('works with create and auth equality', async () => {

tests/e2e/orm/policy/migrated/omit.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('prisma omit', () => {
4848
found = await db.user.findFirst({
4949
select: { value: true, profile: { omit: { level: true } } },
5050
});
51-
console.log(found);
5251
expect(found.age).toBeUndefined();
5352
expect(found.value).toEqual(10);
5453
expect(found.profile.level).toBeUndefined();

tests/e2e/orm/policy/mixin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { createPolicyTestClient } from '@zenstackhq/testtools';
12
import { describe, expect, it } from 'vitest';
2-
import { createPolicyTestClient } from './utils';
33

44
describe('Abstract models', () => {
55
it('connect test1', async () => {

tests/e2e/orm/policy/policy-functions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { createPolicyTestClient } from '@zenstackhq/testtools';
12
import { describe, expect, it } from 'vitest';
2-
import { createPolicyTestClient } from './utils';
33

44
describe('policy functions tests', () => {
55
it('supports contains case-sensitive', async () => {

tests/e2e/orm/policy/todo-sample.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from 'vitest';
22
import { schema } from '../schemas/todo/schema';
3-
import { createPolicyTestClient } from './utils';
3+
import { createPolicyTestClient } from '@zenstackhq/testtools';
44

55
describe('todo sample tests', () => {
66
it('works with user CRUD', async () => {

tests/e2e/orm/policy/utils.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)