From fae222f782547ff5b131265a0cf95214ce8258aa Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 5 Jul 2021 14:33:36 +0100 Subject: [PATCH] added testing function --- src/js/exports.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/js/exports.js b/src/js/exports.js index 1384c96af..e8e29c2cd 100644 --- a/src/js/exports.js +++ b/src/js/exports.js @@ -13,4 +13,21 @@ global.link = AccountController.linkWithGoogle; global.filters = ResultFilters.getFilters(); -global.glarsesMode = toggleGlarses; \ No newline at end of file +global.glarsesMode = toggleGlarses; + +global.crownTest = async () => { + console.log('local pb', await DB.getLocalPB( + "time", + 60, + false, + "english", + "normal" + )) + console.log('local highest wpm', await DB.getUserHighestWpm( + "time", + 60, + false, + "english", + "normal" + )) +} \ No newline at end of file