zhongrj
2025-11-25 b89962006164a462404b79a738bee8cbb6d7fe7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import { shallow } from 'enzyme';
import EditPresetDialog from '../EditPresetDialog';
 
const presetMock = require('../../tests/utils/MockLoader').load("preset.json");
 
describe('<EditPresetDialog />', () => {
  it('renders without exploding', () => {
    const wrapper = shallow(<EditPresetDialog 
             preset={presetMock}
             availableOptions={[]}
             saveAction={() => {}}
             deleteAction={() => {}}
        />);
    expect(wrapper.exists()).toBe(true);
  })
});