Merge branch 'master' of github.com:ONLYOFFICE/CommunityServer-AspNetCore
This commit is contained in:
commit
d879be0c5c
@ -63,6 +63,13 @@ describe("DatePicker tests", () => {
|
||||
expect(wrapper.props().themeColor).toEqual("#fff");
|
||||
});
|
||||
|
||||
it("DatePicker input mask test", () => {
|
||||
const mask = [/\d/, /\d/, "/", /\d/, /\d/, "/", /\d/, /\d/, /\d/, /\d/];
|
||||
const wrapper = mount(<InputBlock mask={mask} />);
|
||||
expect(wrapper.props().mask).toBe(mask);
|
||||
expect(wrapper.props().mask).toEqual(mask);
|
||||
});
|
||||
|
||||
it("DatePicker locale test", () => {
|
||||
const wrapper = mount(<DatePicker locale={"en-GB"} />);
|
||||
expect(wrapper.prop("locale")).toEqual("en-GB");
|
||||
|
Loading…
Reference in New Issue
Block a user