Fix: DateUtil.getDate bug

This commit is contained in:
2018-05-30 09:13:45 +09:00
parent f1cab7de3f
commit cec653abb7
8 changed files with 23 additions and 34 deletions
+4 -5
View File
@@ -36,12 +36,12 @@ QUnit.test( "Player history", function( assert ) {
console.log(historyRecordManager);
assert.equal(historyRecordManager.getAppNameAt(0), "korean_word");
assert.equal(historyRecordManager.getDateAt(0), "2018-04-18");
assert.equal(historyRecordManager.getBestRecordAt(0), 51.6102);
assert.equal(historyRecordManager.getDateAt(0), "2018-05-14");
assert.equal(historyRecordManager.getBestRecordAt(0), 101.78);
assert.equal(historyRecordManager.getAppNameAt(4), "korean_word");
assert.equal(historyRecordManager.getDateAt(4), "2018-05-14");
assert.equal(historyRecordManager.getBestRecordAt(4), 101.78);
assert.equal(historyRecordManager.getDateAt(4), "2018-04-18");
assert.equal(historyRecordManager.getBestRecordAt(4), 51.6102);
done();
}
@@ -51,7 +51,6 @@ QUnit.test( "Player history", function( assert ) {
QUnit.test( "Player ranking", function( assert ) {
sessionStorageManager.playingAppID = 9;
// sessionStorageManager.playingAppName = "korean_word";
let date = "2018-05-16";
let time = "14:50:00";