feat(blocksAntd): init block test files

This commit is contained in:
Gervwyk 2020-11-03 00:30:53 +02:00
parent 7fae64a75d
commit 2c5af69419
59 changed files with 1416 additions and 0 deletions

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });