Migrate to stylistic
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d8052e6a73
commit
6c6bf811a6
124 changed files with 239 additions and 196 deletions
|
@ -162,7 +162,11 @@ describe("VoiceBroadcastPlayback", () => {
|
|||
jest.spyOn(playback, "removeAllListeners");
|
||||
jest.spyOn(playback, "destroy");
|
||||
playback.on(VoiceBroadcastPlaybackEvent.StateChanged, onStateChanged);
|
||||
fakeTimers ? await flushPromisesWithFakeTimers() : await flushPromises();
|
||||
if (fakeTimers) {
|
||||
await flushPromisesWithFakeTimers();
|
||||
} else {
|
||||
await flushPromises();
|
||||
}
|
||||
return playback;
|
||||
};
|
||||
|
||||
|
|
|
@ -453,7 +453,7 @@ describe("VoiceBroadcastRecording", () => {
|
|||
describe.each([
|
||||
["pause", async () => voiceBroadcastRecording.pause()],
|
||||
["toggle", async () => voiceBroadcastRecording.toggle()],
|
||||
])("and calling %s", (_case: string, action: Function) => {
|
||||
])("and calling %s", (_case: string, action: () => Promise<void>) => {
|
||||
beforeEach(async () => {
|
||||
await action();
|
||||
});
|
||||
|
@ -480,7 +480,7 @@ describe("VoiceBroadcastRecording", () => {
|
|||
describe.each([
|
||||
["pause", async () => voiceBroadcastRecording.pause()],
|
||||
["toggle", async () => voiceBroadcastRecording.toggle()],
|
||||
])("and calling %s", (_case: string, action: Function) => {
|
||||
])("and calling %s", (_case: string, action: () => Promise<void>) => {
|
||||
beforeEach(async () => {
|
||||
await action();
|
||||
});
|
||||
|
@ -590,7 +590,7 @@ describe("VoiceBroadcastRecording", () => {
|
|||
describe.each([
|
||||
["resume", async () => voiceBroadcastRecording.resume()],
|
||||
["toggle", async () => voiceBroadcastRecording.toggle()],
|
||||
])("and calling %s", (_case: string, action: Function) => {
|
||||
])("and calling %s", (_case: string, action: () => Promise<void>) => {
|
||||
beforeEach(async () => {
|
||||
await action();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue