From 610db0c7e1d973d0ef621aa66083ac84bf131fe4 Mon Sep 17 00:00:00 2001 From: wangzhe0919 <460392601@qq.com> Date: Thu, 12 Sep 2024 18:19:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?test:=E6=96=B0=E5=A2=9Ereact-native-file-se?= =?UTF-8?q?lector=E6=B5=8B=E8=AF=95demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/file_selectorDemo.tsx | 80 +++++++++++++++++++ .../test/file_selectorTest.tsx | 80 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 react-native-file-selector/demo/file_selectorDemo.tsx create mode 100644 react-native-file-selector/test/file_selectorTest.tsx diff --git a/react-native-file-selector/demo/file_selectorDemo.tsx b/react-native-file-selector/demo/file_selectorDemo.tsx new file mode 100644 index 00000000..c986331c --- /dev/null +++ b/react-native-file-selector/demo/file_selectorDemo.tsx @@ -0,0 +1,80 @@ +import {Button, SafeAreaView } from 'react-native'; +import FileSelector from 'react-native-file-selector'; +import { Tester, TestSuite, TestCase } from '@rnoh/testerino'; + +const FileselectorTest=()=>{ + return ( + + + { + expect(state).to.be.true + }} + initialState={false} + tags={['C_API']} + arrange={ + ({setState})=>{ + return (