mirror of
https://github.com/Kong/insomnia.git
synced 2026-06-03 13:47:23 -04:00
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.
17 lines
558 B
TypeScript
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',
|
|
// );
|
|
// });
|
|
});
|