diff --git a/packages/blocksAntd/tests/Affix.test.js b/packages/blocksAntd/tests/Affix.test.js new file mode 100644 index 000000000..929855117 --- /dev/null +++ b/packages/blocksAntd/tests/Affix.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Affix from '../src/blocks/Affix/Affix'; +import examples from '../demo/examples/Affix.yaml'; +import meta from '../src/blocks/Affix/Affix.json'; + +runRenderTests({ examples, Block: Affix, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Alert.test.js b/packages/blocksAntd/tests/Alert.test.js new file mode 100644 index 000000000..ba8a4a23c --- /dev/null +++ b/packages/blocksAntd/tests/Alert.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Alert from '../src/blocks/Alert/Alert'; +import examples from '../demo/examples/Alert.yaml'; +import meta from '../src/blocks/Alert/Alert.json'; + +runRenderTests({ examples, Block: Alert, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Anchor.test.js b/packages/blocksAntd/tests/Anchor.test.js new file mode 100644 index 000000000..675d5d3aa --- /dev/null +++ b/packages/blocksAntd/tests/Anchor.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Anchor from '../src/blocks/Anchor/Anchor'; +import examples from '../demo/examples/Anchor.yaml'; +import meta from '../src/blocks/Anchor/Anchor.json'; + +runRenderTests({ examples, Block: Anchor, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/AutoComplete.test.js b/packages/blocksAntd/tests/AutoComplete.test.js new file mode 100644 index 000000000..49f92fa07 --- /dev/null +++ b/packages/blocksAntd/tests/AutoComplete.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import AutoComplete from '../src/blocks/AutoComplete/AutoComplete'; +import examples from '../demo/examples/AutoComplete.yaml'; +import meta from '../src/blocks/AutoComplete/AutoComplete.json'; + +runRenderTests({ examples, Block: AutoComplete, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Avatar.test.js b/packages/blocksAntd/tests/Avatar.test.js new file mode 100644 index 000000000..37dc96593 --- /dev/null +++ b/packages/blocksAntd/tests/Avatar.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Avatar from '../src/blocks/Avatar/Avatar'; +import examples from '../demo/examples/Avatar.yaml'; +import meta from '../src/blocks/Avatar/Avatar.json'; + +runRenderTests({ examples, Block: Avatar, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Badge.test.js b/packages/blocksAntd/tests/Badge.test.js new file mode 100644 index 000000000..f754cafdb --- /dev/null +++ b/packages/blocksAntd/tests/Badge.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Badge from '../src/blocks/Badge/Badge'; +import examples from '../demo/examples/Badge.yaml'; +import meta from '../src/blocks/Badge/Badge.json'; + +runRenderTests({ examples, Block: Badge, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Breadcrumb.test.js b/packages/blocksAntd/tests/Breadcrumb.test.js new file mode 100644 index 000000000..32e2a2928 --- /dev/null +++ b/packages/blocksAntd/tests/Breadcrumb.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Breadcrumb from '../src/blocks/Breadcrumb/Breadcrumb'; +import examples from '../demo/examples/Breadcrumb.yaml'; +import meta from '../src/blocks/Breadcrumb/Breadcrumb.json'; + +runRenderTests({ examples, Block: Breadcrumb, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Button.test.js b/packages/blocksAntd/tests/Button.test.js new file mode 100644 index 000000000..eedf9f4ae --- /dev/null +++ b/packages/blocksAntd/tests/Button.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Button from '../src/blocks/Button/Button'; +import examples from '../demo/examples/Button.yaml'; +import meta from '../src/blocks/Button/Button.json'; + +runRenderTests({ examples, Block: Button, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/ButtonSelector.test.js b/packages/blocksAntd/tests/ButtonSelector.test.js new file mode 100644 index 000000000..104209549 --- /dev/null +++ b/packages/blocksAntd/tests/ButtonSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import ButtonSelector from '../src/blocks/ButtonSelector/ButtonSelector'; +import examples from '../demo/examples/ButtonSelector.yaml'; +import meta from '../src/blocks/ButtonSelector/ButtonSelector.json'; + +runRenderTests({ examples, Block: ButtonSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Card.test.js b/packages/blocksAntd/tests/Card.test.js new file mode 100644 index 000000000..068deea27 --- /dev/null +++ b/packages/blocksAntd/tests/Card.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Card from '../src/blocks/Card/Card'; +import examples from '../demo/examples/Card.yaml'; +import meta from '../src/blocks/Card/Card.json'; + +runRenderTests({ examples, Block: Card, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/CheckboxSelector.test.js b/packages/blocksAntd/tests/CheckboxSelector.test.js new file mode 100644 index 000000000..6ce98ee62 --- /dev/null +++ b/packages/blocksAntd/tests/CheckboxSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import CheckboxSelector from '../src/blocks/CheckboxSelector/CheckboxSelector'; +import examples from '../demo/examples/CheckboxSelector.yaml'; +import meta from '../src/blocks/CheckboxSelector/CheckboxSelector.json'; + +runRenderTests({ examples, Block: CheckboxSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Collapse.test.js b/packages/blocksAntd/tests/Collapse.test.js new file mode 100644 index 000000000..eedcad8e3 --- /dev/null +++ b/packages/blocksAntd/tests/Collapse.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Collapse from '../src/blocks/Collapse/Collapse'; +import examples from '../demo/examples/Collapse.yaml'; +import meta from '../src/blocks/Collapse/Collapse.json'; + +runRenderTests({ examples, Block: Collapse, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Comment.test.js b/packages/blocksAntd/tests/Comment.test.js new file mode 100644 index 000000000..26e6ac3de --- /dev/null +++ b/packages/blocksAntd/tests/Comment.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Comment from '../src/blocks/Comment/Comment'; +import examples from '../demo/examples/Comment.yaml'; +import meta from '../src/blocks/Comment/Comment.json'; + +runRenderTests({ examples, Block: Comment, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/ConfirmModal.test.js b/packages/blocksAntd/tests/ConfirmModal.test.js new file mode 100644 index 000000000..91a3af9f3 --- /dev/null +++ b/packages/blocksAntd/tests/ConfirmModal.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import ConfirmModal from '../src/blocks/ConfirmModal/ConfirmModal'; +import examples from '../demo/examples/ConfirmModal.yaml'; +import meta from '../src/blocks/ConfirmModal/ConfirmModal.json'; + +runRenderTests({ examples, Block: ConfirmModal, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Content.test.js b/packages/blocksAntd/tests/Content.test.js new file mode 100644 index 000000000..4ea0af3f0 --- /dev/null +++ b/packages/blocksAntd/tests/Content.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Content from '../src/blocks/Content/Content'; +import examples from '../demo/examples/Content.yaml'; +import meta from '../src/blocks/Content/Content.json'; + +runRenderTests({ examples, Block: Content, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/ControlledList.test.js b/packages/blocksAntd/tests/ControlledList.test.js new file mode 100644 index 000000000..0f1a8a22f --- /dev/null +++ b/packages/blocksAntd/tests/ControlledList.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import ControlledList from '../src/blocks/ControlledList/ControlledList'; +import examples from '../demo/examples/ControlledList.yaml'; +import meta from '../src/blocks/ControlledList/ControlledList.json'; + +runRenderTests({ examples, Block: ControlledList, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/DateRangeSelector.test.js b/packages/blocksAntd/tests/DateRangeSelector.test.js new file mode 100644 index 000000000..12b08f490 --- /dev/null +++ b/packages/blocksAntd/tests/DateRangeSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import DateRangeSelector from '../src/blocks/DateRangeSelector/DateRangeSelector'; +import examples from '../demo/examples/DateRangeSelector.yaml'; +import meta from '../src/blocks/DateRangeSelector/DateRangeSelector.json'; + +runRenderTests({ examples, Block: DateRangeSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/DateSelector.test.js b/packages/blocksAntd/tests/DateSelector.test.js new file mode 100644 index 000000000..adbb4192d --- /dev/null +++ b/packages/blocksAntd/tests/DateSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import DateSelector from '../src/blocks/DateSelector/DateSelector'; +import examples from '../demo/examples/DateSelector.yaml'; +import meta from '../src/blocks/DateSelector/DateSelector.json'; + +runRenderTests({ examples, Block: DateSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/DateTimeSelector.test.js b/packages/blocksAntd/tests/DateTimeSelector.test.js new file mode 100644 index 000000000..d28db8641 --- /dev/null +++ b/packages/blocksAntd/tests/DateTimeSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import DateTimeSelector from '../src/blocks/DateTimeSelector/DateTimeSelector'; +import examples from '../demo/examples/DateTimeSelector.yaml'; +import meta from '../src/blocks/DateTimeSelector/DateTimeSelector.json'; + +runRenderTests({ examples, Block: DateTimeSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Descriptions.test.js b/packages/blocksAntd/tests/Descriptions.test.js new file mode 100644 index 000000000..6ce943782 --- /dev/null +++ b/packages/blocksAntd/tests/Descriptions.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Descriptions from '../src/blocks/Descriptions/Descriptions'; +import examples from '../demo/examples/Descriptions.yaml'; +import meta from '../src/blocks/Descriptions/Descriptions.json'; + +runRenderTests({ examples, Block: Descriptions, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Divider.test.js b/packages/blocksAntd/tests/Divider.test.js new file mode 100644 index 000000000..b3e809910 --- /dev/null +++ b/packages/blocksAntd/tests/Divider.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Divider from '../src/blocks/Divider/Divider'; +import examples from '../demo/examples/Divider.yaml'; +import meta from '../src/blocks/Divider/Divider.json'; + +runRenderTests({ examples, Block: Divider, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Drawer.test.js b/packages/blocksAntd/tests/Drawer.test.js new file mode 100644 index 000000000..0ee1a5d74 --- /dev/null +++ b/packages/blocksAntd/tests/Drawer.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Drawer from '../src/blocks/Drawer/Drawer'; +import examples from '../demo/examples/Drawer.yaml'; +import meta from '../src/blocks/Drawer/Drawer.json'; + +runRenderTests({ examples, Block: Drawer, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Footer.test.js b/packages/blocksAntd/tests/Footer.test.js new file mode 100644 index 000000000..ea8432c1a --- /dev/null +++ b/packages/blocksAntd/tests/Footer.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Footer from '../src/blocks/Footer/Footer'; +import examples from '../demo/examples/Footer.yaml'; +import meta from '../src/blocks/Footer/Footer.json'; + +runRenderTests({ examples, Block: Footer, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Header.test.js b/packages/blocksAntd/tests/Header.test.js new file mode 100644 index 000000000..b17d62229 --- /dev/null +++ b/packages/blocksAntd/tests/Header.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Header from '../src/blocks/Header/Header'; +import examples from '../demo/examples/Header.yaml'; +import meta from '../src/blocks/Header/Header.json'; + +runRenderTests({ examples, Block: Header, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Icon.test.js b/packages/blocksAntd/tests/Icon.test.js new file mode 100644 index 000000000..d8767783f --- /dev/null +++ b/packages/blocksAntd/tests/Icon.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Icon from '../src/blocks/Icon/Icon'; +import examples from '../demo/examples/Icon.yaml'; +import meta from '../src/blocks/Icon/Icon.json'; + +runRenderTests({ examples, Block: Icon, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Label.test.js b/packages/blocksAntd/tests/Label.test.js new file mode 100644 index 000000000..ca93f9aee --- /dev/null +++ b/packages/blocksAntd/tests/Label.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Label from '../src/blocks/Label/Label'; +import examples from '../demo/examples/Label.yaml'; +import meta from '../src/blocks/Label/Label.json'; + +runRenderTests({ examples, Block: Label, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Layout.test.js b/packages/blocksAntd/tests/Layout.test.js new file mode 100644 index 000000000..33ac9ba65 --- /dev/null +++ b/packages/blocksAntd/tests/Layout.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Layout from '../src/blocks/Layout/Layout'; +import examples from '../demo/examples/Layout.yaml'; +import meta from '../src/blocks/Layout/Layout.json'; + +runRenderTests({ examples, Block: Layout, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Menu.test.js b/packages/blocksAntd/tests/Menu.test.js new file mode 100644 index 000000000..a21e1d3c8 --- /dev/null +++ b/packages/blocksAntd/tests/Menu.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Menu from '../src/blocks/Menu/Menu'; +import examples from '../demo/examples/Menu.yaml'; +import meta from '../src/blocks/Menu/Menu.json'; + +runRenderTests({ examples, Block: Menu, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Message.test.js b/packages/blocksAntd/tests/Message.test.js new file mode 100644 index 000000000..cb4b85dc7 --- /dev/null +++ b/packages/blocksAntd/tests/Message.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Message from '../src/blocks/Message/Message'; +import examples from '../demo/examples/Message.yaml'; +import meta from '../src/blocks/Message/Message.json'; + +runRenderTests({ examples, Block: Message, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/MobileMenu.test.js b/packages/blocksAntd/tests/MobileMenu.test.js new file mode 100644 index 000000000..30d4f8c34 --- /dev/null +++ b/packages/blocksAntd/tests/MobileMenu.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import MobileMenu from '../src/blocks/MobileMenu/MobileMenu'; +import examples from '../demo/examples/MobileMenu.yaml'; +import meta from '../src/blocks/MobileMenu/MobileMenu.json'; + +runRenderTests({ examples, Block: MobileMenu, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Modal.test.js b/packages/blocksAntd/tests/Modal.test.js new file mode 100644 index 000000000..067632fe4 --- /dev/null +++ b/packages/blocksAntd/tests/Modal.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Modal from '../src/blocks/Modal/Modal'; +import examples from '../demo/examples/Modal.yaml'; +import meta from '../src/blocks/Modal/Modal.json'; + +runRenderTests({ examples, Block: Modal, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/MonthSelector.test.js b/packages/blocksAntd/tests/MonthSelector.test.js new file mode 100644 index 000000000..0224f3315 --- /dev/null +++ b/packages/blocksAntd/tests/MonthSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import MonthSelector from '../src/blocks/MonthSelector/MonthSelector'; +import examples from '../demo/examples/MonthSelector.yaml'; +import meta from '../src/blocks/MonthSelector/MonthSelector.json'; + +runRenderTests({ examples, Block: MonthSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/MultipleSelector.test.js b/packages/blocksAntd/tests/MultipleSelector.test.js new file mode 100644 index 000000000..c6d0eae16 --- /dev/null +++ b/packages/blocksAntd/tests/MultipleSelector.test.js @@ -0,0 +1,25 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import MultipleSelector from '../src/blocks/MultipleSelector/MultipleSelector'; +import examples from '../demo/examples/MultipleSelector.yaml'; +import meta from '../src/blocks/MultipleSelector/MultipleSelector.json'; + +// FIX: TypeError: Cannot read property 'scrollWidth' of null +// runRenderTests({ examples, Block: MultipleSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Notification.test.js b/packages/blocksAntd/tests/Notification.test.js new file mode 100644 index 000000000..75d0938dd --- /dev/null +++ b/packages/blocksAntd/tests/Notification.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Notification from '../src/blocks/Notification/Notification'; +import examples from '../demo/examples/Notification.yaml'; +import meta from '../src/blocks/Notification/Notification.json'; + +runRenderTests({ examples, Block: Notification, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/NumberInput.test.js b/packages/blocksAntd/tests/NumberInput.test.js new file mode 100644 index 000000000..0a636ec96 --- /dev/null +++ b/packages/blocksAntd/tests/NumberInput.test.js @@ -0,0 +1,23 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; +import NumberInput from '../src/blocks/NumberInput/NumberInput'; +import examples from '../demo/examples/NumberInput.yaml'; +import meta from '../src/blocks/NumberInput/NumberInput.json'; + +runRenderTests({ examples, Block: NumberInput, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageHCF.test.js b/packages/blocksAntd/tests/PageHCF.test.js new file mode 100644 index 000000000..ae5f90419 --- /dev/null +++ b/packages/blocksAntd/tests/PageHCF.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageHCF from '../src/blocks/PageHCF/PageHCF'; +import examples from '../demo/examples/PageHCF.yaml'; +import meta from '../src/blocks/PageHCF/PageHCF.json'; + +runRenderTests({ examples, Block: PageHCF, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageHCSF.test.js b/packages/blocksAntd/tests/PageHCSF.test.js new file mode 100644 index 000000000..195f5eb7a --- /dev/null +++ b/packages/blocksAntd/tests/PageHCSF.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageHCSF from '../src/blocks/PageHCSF/PageHCSF'; +import examples from '../demo/examples/PageHCSF.yaml'; +import meta from '../src/blocks/PageHCSF/PageHCSF.json'; + +runRenderTests({ examples, Block: PageHCSF, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageHSCF.test.js b/packages/blocksAntd/tests/PageHSCF.test.js new file mode 100644 index 000000000..a10fac4d5 --- /dev/null +++ b/packages/blocksAntd/tests/PageHSCF.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageHSCF from '../src/blocks/PageHSCF/PageHSCF'; +import examples from '../demo/examples/PageHSCF.yaml'; +import meta from '../src/blocks/PageHSCF/PageHSCF.json'; + +runRenderTests({ examples, Block: PageHSCF, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageHeaderMenu.test.js b/packages/blocksAntd/tests/PageHeaderMenu.test.js new file mode 100644 index 000000000..781ccdfdf --- /dev/null +++ b/packages/blocksAntd/tests/PageHeaderMenu.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageHeaderMenu from '../src/blocks/PageHeaderMenu/PageHeaderMenu'; +import examples from '../demo/examples/PageHeaderMenu.yaml'; +import meta from '../src/blocks/PageHeaderMenu/PageHeaderMenu.json'; + +runRenderTests({ examples, Block: PageHeaderMenu, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageSHCF.test.js b/packages/blocksAntd/tests/PageSHCF.test.js new file mode 100644 index 000000000..bd8726d7e --- /dev/null +++ b/packages/blocksAntd/tests/PageSHCF.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageSHCF from '../src/blocks/PageSHCF/PageSHCF'; +import examples from '../demo/examples/PageSHCF.yaml'; +import meta from '../src/blocks/PageSHCF/PageSHCF.json'; + +runRenderTests({ examples, Block: PageSHCF, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/PageSiderMenu.test.js b/packages/blocksAntd/tests/PageSiderMenu.test.js new file mode 100644 index 000000000..5e2f9bbba --- /dev/null +++ b/packages/blocksAntd/tests/PageSiderMenu.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import PageSiderMenu from '../src/blocks/PageSiderMenu/PageSiderMenu'; +import examples from '../demo/examples/PageSiderMenu.yaml'; +import meta from '../src/blocks/PageSiderMenu/PageSiderMenu.json'; + +runRenderTests({ examples, Block: PageSiderMenu, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Pagination.test.js b/packages/blocksAntd/tests/Pagination.test.js new file mode 100644 index 000000000..15c338ddd --- /dev/null +++ b/packages/blocksAntd/tests/Pagination.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Pagination from '../src/blocks/Pagination/Pagination'; +import examples from '../demo/examples/Pagination.yaml'; +import meta from '../src/blocks/Pagination/Pagination.json'; + +runRenderTests({ examples, Block: Pagination, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Paragraph.test.js b/packages/blocksAntd/tests/Paragraph.test.js new file mode 100644 index 000000000..c23a9d5ee --- /dev/null +++ b/packages/blocksAntd/tests/Paragraph.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Paragraph from '../src/blocks/Paragraph/Paragraph'; +import examples from '../demo/examples/Paragraph.yaml'; +import meta from '../src/blocks/Paragraph/Paragraph.json'; + +runRenderTests({ examples, Block: Paragraph, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/RadioSelector.test.js b/packages/blocksAntd/tests/RadioSelector.test.js new file mode 100644 index 000000000..c2aead26f --- /dev/null +++ b/packages/blocksAntd/tests/RadioSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import RadioSelector from '../src/blocks/RadioSelector/RadioSelector'; +import examples from '../demo/examples/RadioSelector.yaml'; +import meta from '../src/blocks/RadioSelector/RadioSelector.json'; + +runRenderTests({ examples, Block: RadioSelector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/RatingSlider.test.js b/packages/blocksAntd/tests/RatingSlider.test.js new file mode 100644 index 000000000..98aa884e7 --- /dev/null +++ b/packages/blocksAntd/tests/RatingSlider.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import RatingSlider from '../src/blocks/RatingSlider/RatingSlider'; +import examples from '../demo/examples/RatingSlider.yaml'; +import meta from '../src/blocks/RatingSlider/RatingSlider.json'; + +runRenderTests({ examples, Block: RatingSlider, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Result.test.js b/packages/blocksAntd/tests/Result.test.js new file mode 100644 index 000000000..6837384bd --- /dev/null +++ b/packages/blocksAntd/tests/Result.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Result from '../src/blocks/Result/Result'; +import examples from '../demo/examples/Result.yaml'; +import meta from '../src/blocks/Result/Result.json'; + +runRenderTests({ examples, Block: Result, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Selector.test.js b/packages/blocksAntd/tests/Selector.test.js new file mode 100644 index 000000000..65f15b425 --- /dev/null +++ b/packages/blocksAntd/tests/Selector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Selector from '../src/blocks/Selector/Selector'; +import examples from '../demo/examples/Selector.yaml'; +import meta from '../src/blocks/Selector/Selector.json'; + +runRenderTests({ examples, Block: Selector, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Sider.test.js b/packages/blocksAntd/tests/Sider.test.js new file mode 100644 index 000000000..349b54caf --- /dev/null +++ b/packages/blocksAntd/tests/Sider.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Sider from '../src/blocks/Sider/Sider'; +import examples from '../demo/examples/Sider.yaml'; +import meta from '../src/blocks/Sider/Sider.json'; + +runRenderTests({ examples, Block: Sider, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Skeleton.test.js b/packages/blocksAntd/tests/Skeleton.test.js new file mode 100644 index 000000000..8993d5f1b --- /dev/null +++ b/packages/blocksAntd/tests/Skeleton.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Skeleton from '../src/blocks/Skeleton/Skeleton'; +import examples from '../demo/examples/Skeleton.yaml'; +import meta from '../src/blocks/Skeleton/Skeleton.json'; + +runRenderTests({ examples, Block: Skeleton, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Spin.test.js b/packages/blocksAntd/tests/Spin.test.js new file mode 100644 index 000000000..13bd04c97 --- /dev/null +++ b/packages/blocksAntd/tests/Spin.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Spin from '../src/blocks/Spin/Spin'; +import examples from '../demo/examples/Spin.yaml'; +import meta from '../src/blocks/Spin/Spin.json'; + +runRenderTests({ examples, Block: Spin, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Statistic.test.js b/packages/blocksAntd/tests/Statistic.test.js new file mode 100644 index 000000000..a24ca903c --- /dev/null +++ b/packages/blocksAntd/tests/Statistic.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Statistic from '../src/blocks/Statistic/Statistic'; +import examples from '../demo/examples/Statistic.yaml'; +import meta from '../src/blocks/Statistic/Statistic.json'; + +runRenderTests({ examples, Block: Statistic, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Switch.test.js b/packages/blocksAntd/tests/Switch.test.js new file mode 100644 index 000000000..eebe70b36 --- /dev/null +++ b/packages/blocksAntd/tests/Switch.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Switch from '../src/blocks/Switch/Switch'; +import examples from '../demo/examples/Switch.yaml'; +import meta from '../src/blocks/Switch/Switch.json'; + +runRenderTests({ examples, Block: Switch, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Tabs.test.js b/packages/blocksAntd/tests/Tabs.test.js new file mode 100644 index 000000000..7314530eb --- /dev/null +++ b/packages/blocksAntd/tests/Tabs.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Tabs from '../src/blocks/Tabs/Tabs'; +import examples from '../demo/examples/Tabs.yaml'; +import meta from '../src/blocks/Tabs/Tabs.json'; + +runRenderTests({ examples, Block: Tabs, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/TextArea.test.js b/packages/blocksAntd/tests/TextArea.test.js new file mode 100644 index 000000000..9654b2bba --- /dev/null +++ b/packages/blocksAntd/tests/TextArea.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import TextArea from '../src/blocks/TextArea/TextArea'; +import examples from '../demo/examples/TextArea.yaml'; +import meta from '../src/blocks/TextArea/TextArea.json'; + +runRenderTests({ examples, Block: TextArea, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/TextInput.test.js b/packages/blocksAntd/tests/TextInput.test.js new file mode 100644 index 000000000..85a639954 --- /dev/null +++ b/packages/blocksAntd/tests/TextInput.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import TextInput from '../src/blocks/TextInput/TextInput'; +import examples from '../demo/examples/TextInput.yaml'; +import meta from '../src/blocks/TextInput/TextInput.json'; + +runRenderTests({ examples, Block: TextInput, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Timeline.test.js b/packages/blocksAntd/tests/Timeline.test.js new file mode 100644 index 000000000..6633e3ca6 --- /dev/null +++ b/packages/blocksAntd/tests/Timeline.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Timeline from '../src/blocks/Timeline/Timeline'; +import examples from '../demo/examples/Timeline.yaml'; +import meta from '../src/blocks/Timeline/Timeline.json'; + +runRenderTests({ examples, Block: Timeline, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/Title.test.js b/packages/blocksAntd/tests/Title.test.js new file mode 100644 index 000000000..67e95b61a --- /dev/null +++ b/packages/blocksAntd/tests/Title.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import Title from '../src/blocks/Title/Title'; +import examples from '../demo/examples/Title.yaml'; +import meta from '../src/blocks/Title/Title.json'; + +runRenderTests({ examples, Block: Title, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/UserAvatar.test.js b/packages/blocksAntd/tests/UserAvatar.test.js new file mode 100644 index 000000000..e7053dd34 --- /dev/null +++ b/packages/blocksAntd/tests/UserAvatar.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import UserAvatar from '../src/blocks/UserAvatar/UserAvatar'; +import examples from '../demo/examples/UserAvatar.yaml'; +import meta from '../src/blocks/UserAvatar/UserAvatar.json'; + +runRenderTests({ examples, Block: UserAvatar, meta }); +runBlockSchemaTests({ examples, meta }); diff --git a/packages/blocksAntd/tests/WeekSelector.test.js b/packages/blocksAntd/tests/WeekSelector.test.js new file mode 100644 index 000000000..f2cc25f70 --- /dev/null +++ b/packages/blocksAntd/tests/WeekSelector.test.js @@ -0,0 +1,24 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import { runBlockSchemaTests, runRenderTests } from '@lowdefy/block-tools'; + +import WeekSelector from '../src/blocks/WeekSelector/WeekSelector'; +import examples from '../demo/examples/WeekSelector.yaml'; +import meta from '../src/blocks/WeekSelector/WeekSelector.json'; + +runRenderTests({ examples, Block: WeekSelector, meta }); +runBlockSchemaTests({ examples, meta });