From 6dbcb7640ef50d4576e1b8dbd4a9742f4e04c269 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 30 Jul 2022 14:43:34 -0500 Subject: [PATCH] mock store changes --- squarenotsquare/__mock__/mockKeyStore.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/__mock__/mockKeyStore.js b/squarenotsquare/__mock__/mockKeyStore.js index c6521a5..c8fbb08 100644 --- a/squarenotsquare/__mock__/mockKeyStore.js +++ b/squarenotsquare/__mock__/mockKeyStore.js @@ -7,5 +7,11 @@ export async function setKey(key, value) { } export async function getKey(key) { - return '1234567890'; + if (key === 'isNull'){ + return null; + } else if (key === 'negTest') { + return '-1'; + } else { + return '1234567890'; + } }