try posting test results

This commit is contained in:
lingdocs 2021-09-18 23:14:36 -04:00
parent 082b1f1b2e
commit 36b78a94e2
3 changed files with 9 additions and 6 deletions

View File

@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"@lingdocs/lingdocs-main": "^0.1.1",
"@lingdocs/lingdocs-main": "^0.1.2",
"@lingdocs/pashto-inflector": "^1.0.5",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",

View File

@ -10,6 +10,7 @@ import {
import {
AT,
getTimestamp,
postTestResults,
} from "@lingdocs/lingdocs-main";
import {
Types as T,
@ -55,8 +56,10 @@ function GameCore<T>({ questions, Display, timeLimit, Instructions, studyLink, i
time: getTimestamp(),
id,
};
// TODO: post results
console.log("will post result", JSON.stringify(result));
postTestResults([result])
.then(console.log)
.catch(console.error);
}
}
function handleQuit() {

View File

@ -1566,10 +1566,10 @@
"@types/yargs" "^15.0.0"
chalk "^4.0.0"
"@lingdocs/lingdocs-main@^0.1.1":
version "0.1.1"
resolved "https://npm.lingdocs.com/@lingdocs%2flingdocs-main/-/lingdocs-main-0.1.1.tgz#b4b7b8774821e5188a8deb7312cd2db0410115d1"
integrity sha512-Khh1bZ2ZB9BowB1Thp38hrJnHyVQfeQBFFYV1Juc0YLsGInCAAptI4QGSOL1PXRGhYIwQwrgu+1J/dFyDO/6CA==
"@lingdocs/lingdocs-main@^0.1.2":
version "0.1.2"
resolved "https://npm.lingdocs.com/@lingdocs%2flingdocs-main/-/lingdocs-main-0.1.2.tgz#3b56cd272e696c335de4dad1ccff11805970e312"
integrity sha512-8F3bAahYGZv7qJjVwDxs0IK3k92CuW0aJGJvINipSLFRdd+u5BxvxdiGgYnfocPhHO+rQsOKVskTK1+v5boctA==
dependencies:
nano "^9.0.5"
passport-github2 "^0.1.12"