try posting test results
This commit is contained in:
parent
082b1f1b2e
commit
36b78a94e2
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||||
"@lingdocs/lingdocs-main": "^0.1.1",
|
"@lingdocs/lingdocs-main": "^0.1.2",
|
||||||
"@lingdocs/pashto-inflector": "^1.0.5",
|
"@lingdocs/pashto-inflector": "^1.0.5",
|
||||||
"@testing-library/jest-dom": "^4.2.4",
|
"@testing-library/jest-dom": "^4.2.4",
|
||||||
"@testing-library/react": "^9.3.2",
|
"@testing-library/react": "^9.3.2",
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
import {
|
import {
|
||||||
AT,
|
AT,
|
||||||
getTimestamp,
|
getTimestamp,
|
||||||
|
postTestResults,
|
||||||
} from "@lingdocs/lingdocs-main";
|
} from "@lingdocs/lingdocs-main";
|
||||||
import {
|
import {
|
||||||
Types as T,
|
Types as T,
|
||||||
|
@ -55,8 +56,10 @@ function GameCore<T>({ questions, Display, timeLimit, Instructions, studyLink, i
|
||||||
time: getTimestamp(),
|
time: getTimestamp(),
|
||||||
id,
|
id,
|
||||||
};
|
};
|
||||||
// TODO: post results
|
|
||||||
console.log("will post result", JSON.stringify(result));
|
console.log("will post result", JSON.stringify(result));
|
||||||
|
postTestResults([result])
|
||||||
|
.then(console.log)
|
||||||
|
.catch(console.error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function handleQuit() {
|
function handleQuit() {
|
||||||
|
|
|
@ -1566,10 +1566,10 @@
|
||||||
"@types/yargs" "^15.0.0"
|
"@types/yargs" "^15.0.0"
|
||||||
chalk "^4.0.0"
|
chalk "^4.0.0"
|
||||||
|
|
||||||
"@lingdocs/lingdocs-main@^0.1.1":
|
"@lingdocs/lingdocs-main@^0.1.2":
|
||||||
version "0.1.1"
|
version "0.1.2"
|
||||||
resolved "https://npm.lingdocs.com/@lingdocs%2flingdocs-main/-/lingdocs-main-0.1.1.tgz#b4b7b8774821e5188a8deb7312cd2db0410115d1"
|
resolved "https://npm.lingdocs.com/@lingdocs%2flingdocs-main/-/lingdocs-main-0.1.2.tgz#3b56cd272e696c335de4dad1ccff11805970e312"
|
||||||
integrity sha512-Khh1bZ2ZB9BowB1Thp38hrJnHyVQfeQBFFYV1Juc0YLsGInCAAptI4QGSOL1PXRGhYIwQwrgu+1J/dFyDO/6CA==
|
integrity sha512-8F3bAahYGZv7qJjVwDxs0IK3k92CuW0aJGJvINipSLFRdd+u5BxvxdiGgYnfocPhHO+rQsOKVskTK1+v5boctA==
|
||||||
dependencies:
|
dependencies:
|
||||||
nano "^9.0.5"
|
nano "^9.0.5"
|
||||||
passport-github2 "^0.1.12"
|
passport-github2 "^0.1.12"
|
||||||
|
|
Loading…
Reference in New Issue