Skip to content

Commit 7761b0a

Browse files
Copilothotlong
andcommitted
fix: remove undefined View Storage Operation schemas from protocol.test.ts
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 22d7bab commit 7761b0a

1 file changed

Lines changed: 0 additions & 47 deletions

File tree

packages/spec/src/api/protocol.test.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ import {
2525
CreateManyDataResponseSchema,
2626
UpdateManyDataRequestSchema,
2727
DeleteManyDataRequestSchema,
28-
GetViewRequestSchema,
29-
DeleteViewRequestSchema,
30-
DeleteViewResponseSchema,
3128
} from './protocol.zod';
3229

3330
describe('Discovery & Metadata Operations', () => {
@@ -526,50 +523,6 @@ describe('Batch Operations', () => {
526523
});
527524
});
528525

529-
describe('View Storage Operations', () => {
530-
describe('GetViewRequestSchema', () => {
531-
it('should accept get view request', () => {
532-
const request = GetViewRequestSchema.parse({
533-
id: 'view_123',
534-
});
535-
536-
expect(request.id).toBe('view_123');
537-
});
538-
539-
it('should reject request without id', () => {
540-
expect(() => GetViewRequestSchema.parse({})).toThrow();
541-
});
542-
});
543-
544-
describe('DeleteViewRequestSchema', () => {
545-
it('should accept delete view request', () => {
546-
const request = DeleteViewRequestSchema.parse({
547-
id: 'view_123',
548-
});
549-
550-
expect(request.id).toBe('view_123');
551-
});
552-
});
553-
554-
describe('DeleteViewResponseSchema', () => {
555-
it('should accept successful delete', () => {
556-
const response = DeleteViewResponseSchema.parse({
557-
success: true,
558-
});
559-
560-
expect(response.success).toBe(true);
561-
});
562-
563-
it('should accept failed delete', () => {
564-
const response = DeleteViewResponseSchema.parse({
565-
success: false,
566-
});
567-
568-
expect(response.success).toBe(false);
569-
});
570-
});
571-
});
572-
573526
describe('Integration Tests', () => {
574527
it('should support complete data workflow', () => {
575528
// Create

0 commit comments

Comments
 (0)