Files
insomnia/packages/insomnia-data/__tests__/request-meta.test.ts
Bingbing b09cde814d refactor: extract insomnia-data into workspace package (#10010)
Move insomnia-data models, services, database code, and common utilities into a dedicated workspace package. Update consumers to import from the new package entrypoints and declare workspace dependencies for the extracted package.
2026-06-02 09:49:10 +00:00

17 lines
558 B
TypeScript

import { services } from 'insomnia-data';
import { describe, expect, it } from 'vitest';
describe('create()', () => {
it('fails when missing parentId', async () => {
expect(() =>
services.requestMeta.create({
pinned: true,
}),
).toThrow('New RequestMeta missing `parentId`');
}); // it('fails when parentId prefix is not that of a Request', async () => {
// expect(() => services.requestMeta.create({ parentId: 'greq_123' })).toThrow(
// 'Expected the parent of RequestMeta to be a Request',
// );
// });
});