Skip to content

Commit

Permalink
removed sequential random number test and moved files
Browse files Browse the repository at this point in the history
  • Loading branch information
shammy642 committed Oct 16, 2024
1 parent 66cf3dd commit 3ab114f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const server = http.createServer(app)

const io = new Server(server, {
cors: {
origin: "http://localhost:5173"
origin: "*"
}
})

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Game = require("../../classes/Game");
const Game = require("../../numberGame/Game");


describe("Game", () => {
Expand Down Expand Up @@ -26,11 +26,6 @@ describe("Game", () => {
expect(randomNumber).toBeLessThanOrEqual(100);
});

test("should generate different numbers on subsequent calls", () => {
const randomNumber1 = game.generateRandomNumber();
const randomNumber2 = game.generateRandomNumber();
expect(randomNumber1).not.toEqual(randomNumber2); // Not always true, but generally should be.
});
});

describe("addPlayer", () => {
Expand Down

0 comments on commit 3ab114f

Please sign in to comment.