feat: Display the level cap

This commit is contained in:
Alexander Polynomdivision
2018-09-20 19:54:03 +02:00
parent 466e5a3107
commit 8ab29bece8
4 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
import { userScoreToLevel } from "../user";
it("Should return level 1 for 34", () => {
const level = userScoreToLevel(34);
expect(level.level).toBe(1);
});
it("Should return level 2 for 35", () => {
const level = userScoreToLevel(35);
expect(level.level).toBe(2);
});