Skip to content

Commit

Permalink
clear some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed May 9, 2021
1 parent 323e86f commit 6a3e2c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/filewriter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const TIMEOUT_MS = 1000;
describe("when ending SlpFileWriter", () => {
it("should write data length to file", async () => {
const { dataLength, newFilename } = runSlpFileWriter("slp/finalizedFrame.slp");
await new Promise((resolve) => {
await new Promise<void>((resolve) => {
setTimeout(() => {
const writtenDataLength = openSlpFile({ source: SlpInputSource.FILE, filePath: newFilename }).rawDataLength;
fs.unlinkSync(newFilename);
Expand All @@ -24,7 +24,7 @@ describe("when ending SlpFileWriter", () => {

it("should succeed if no display names or connect codes are available in game start", async () => {
const { newFilename } = runSlpFileWriter("slp/finalizedFrame.slp");
await new Promise((resolve) => {
await new Promise<void>((resolve) => {
setTimeout(() => {
const players = new SlippiGame(newFilename).getMetadata().players;
Object.keys(players).forEach((key) => {
Expand All @@ -42,7 +42,7 @@ describe("when ending SlpFileWriter", () => {

it("should write display name and connect codes to metadata if available in game start", async () => {
const { newFilename } = runSlpFileWriter("slp/displayNameAndConnectCodeInGameStart.slp");
await new Promise((resolve) => {
await new Promise<void>((resolve) => {
setTimeout(() => {
const players = new SlippiGame(newFilename).getMetadata().players;
Object.keys(players).forEach((key) => {
Expand Down

0 comments on commit 6a3e2c6

Please sign in to comment.