mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
19 lines
597 B
TypeScript
19 lines
597 B
TypeScript
import { globalBeforeEach } from '../../__jest__/before-each';
|
|
import * as models from '../index';
|
|
|
|
describe('create()', () => {
|
|
beforeEach(globalBeforeEach);
|
|
|
|
it('fails when missing parentId', async () => {
|
|
expect(() =>
|
|
models.requestMeta.create({
|
|
pinned: true,
|
|
}),
|
|
).toThrow('New RequestMeta missing `parentId`');
|
|
}); // it('fails when parentId prefix is not that of a Request', async () => {
|
|
// expect(() => models.requestMeta.create({ parentId: 'greq_123' })).toThrow(
|
|
// 'Expected the parent of RequestMeta to be a Request',
|
|
// );
|
|
// });
|
|
});
|