Fix: ranking record
This commit is contained in:
@@ -9,7 +9,7 @@ QUnit.test( "User login", function( assert ) {
|
||||
let done = assert.async();
|
||||
setTimeout(function() {
|
||||
dbConnectManager.requestCheckUserLogin(
|
||||
"test", "111111",
|
||||
"jisangs", "test", "111111",
|
||||
(jsonData) => {
|
||||
returnPlayerID = jsonData["UserID"];
|
||||
assert.equal(returnPlayerID, 31);
|
||||
@@ -25,7 +25,7 @@ QUnit.test( "User login", function( assert ) {
|
||||
|
||||
QUnit.test( "Player history", function( assert ) {
|
||||
sessionStorageManager.playerUserID = "8"; // 부현율
|
||||
sessionStorageManager.playingAppName = "korean_word";
|
||||
sessionStorageManager.playingAppID = 9;
|
||||
let date = "2018-05-16";
|
||||
|
||||
let done = assert.async();
|
||||
@@ -33,6 +33,8 @@ QUnit.test( "Player history", function( assert ) {
|
||||
dbConnectManager.requestPlayerHistory(
|
||||
date,
|
||||
(historyRecordManager) => {
|
||||
console.log(historyRecordManager);
|
||||
|
||||
assert.equal(historyRecordManager.getAppNameAt(0), "korean_word");
|
||||
assert.equal(historyRecordManager.getDateAt(0), "2018-04-18");
|
||||
assert.equal(historyRecordManager.getScoreAt(0), 51.6102);
|
||||
@@ -48,7 +50,8 @@ QUnit.test( "Player history", function( assert ) {
|
||||
});
|
||||
|
||||
QUnit.test( "Player ranking", function( assert ) {
|
||||
sessionStorageManager.playingAppName = "korean_word";
|
||||
sessionStorageManager.playingAppID = 9;
|
||||
// sessionStorageManager.playingAppName = "korean_word";
|
||||
let date = "2018-05-16";
|
||||
let time = "14:50:00";
|
||||
|
||||
@@ -117,4 +120,4 @@ QUnit.test( "Player ranking", function( assert ) {
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user