From 209918668747dc02ac07ced80a82571c625d3657 Mon Sep 17 00:00:00 2001 From: wenhaodong Date: Tue, 5 Nov 2024 15:05:15 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=94=B9=20react-native-mmkv-?= =?UTF-8?q?storage=20=E6=B5=8B=E8=AF=95demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-native-mmkv-storage/MMKVStorageTest.tsx | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/react-native-mmkv-storage/MMKVStorageTest.tsx b/react-native-mmkv-storage/MMKVStorageTest.tsx index 93268eea..dc248c39 100644 --- a/react-native-mmkv-storage/MMKVStorageTest.tsx +++ b/react-native-mmkv-storage/MMKVStorageTest.tsx @@ -253,6 +253,34 @@ const MMKVStorageTest = () => { }} /> + ( + + { + storageString.clearStore(); + if (!storageString.options.key) { + setState(true) + } else { + setState(false) + } + }} + > + + 清仓 + + + + )} + assert={({ state, expect }) => { + expect(state).to.be.true; + }} + /> + { /> -