文件操作 - SignupForm.test.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/features/profile/SignupForm.test.tsx
编辑文件内容
import React from 'react'; import { shallow } from 'enzyme'; import { SignupForm } from './SignupForm'; describe('SignupForm', () => { describe('With different values for verifyEmail and autoAssignOrg', () => { it('should render input fields', () => { const wrapper = shallow(<SignupForm verifyEmailEnabled={true} autoAssignOrg={false} />); expect(wrapper.exists('Forms.Input[name="orgName"]')); expect(wrapper.exists('Forms.Input[name="code"]')); }); it('should not render input fields', () => { const wrapper = shallow(<SignupForm verifyEmailEnabled={false} autoAssignOrg={true} />); expect(wrapper.exists('Forms.Input[name="orgName"]')).toBeFalsy(); expect(wrapper.exists('Forms.Input[name="code"]')).toBeFalsy(); }); }); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件