Fix: update result record to DB

This commit is contained in:
2019-07-17 09:19:52 +09:00
parent 90f4219298
commit 8268852c9d
7 changed files with 49 additions and 48 deletions
+7 -7
View File
@@ -122,7 +122,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
WRITING_ID, //writingRecord
RECORD - 10, // record
(function(jsonData) { // onSucceeded
console.log(jsonData);
// console.log(jsonData);
updateTypingExamRecord2();
}).bind(this),
(function(jsonData) { // onFailed
@@ -138,11 +138,11 @@ QUnit.test( "TypingExamDB", function( assert ) {
WRITING_ID, //writingRecord
RECORD, // record
(function(jsonData) { // onSucceeded
console.log(jsonData);
// console.log(jsonData);
getTypingExamHighestRecord();
}).bind(this),
(function(jsonData) { // onFailed
console.log(jsonData);
// console.log(jsonData);
}).bind(this)
);
}
@@ -154,7 +154,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
dbService.getTypingExamHighestRecord(
WRITING_ID,
(function(jsonData) { // onSucceeded
console.log(jsonData);
// console.log(jsonData);
var highestRecord = jsonData["highestRecordData"];
assert.equal(highestRecord["highestRecord"], RECORD + 10, "highest record");
@@ -175,11 +175,11 @@ QUnit.test( "TypingExamDB", function( assert ) {
WRITING_ID, //writingRecord
RECORD + 20, // record
(function(jsonData) { // onSucceeded
console.log(jsonData);
// console.log(jsonData);
getTypingExamHighestRecord2();
}).bind(this),
(function(jsonData) { // onFailed
console.log(jsonData);
// console.log(jsonData);
done();
}).bind(this)
);
@@ -190,7 +190,7 @@ QUnit.test( "TypingExamDB", function( assert ) {
dbService.getTypingExamHighestRecord(
WRITING_ID,
(function(jsonData) { // onSucceeded
console.log(jsonData);
// console.log(jsonData);
var highestRecord = jsonData["highestRecordData"];
assert.equal(highestRecord["highestRecord"], RECORD + 20, "highest record");