Skip to content

Commit cf320d0

Browse files
committed
chore: apply various minor fixes after reformatting
1 parent d02f416 commit cf320d0

File tree

198 files changed

+620
-444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+620
-444
lines changed

meteor/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CHANGELOG*.md
33
*.snap
44
*.xml
55
public/locales
6+
.meteor

meteor/__mocks__/_extendJest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ expect.extend({
7171
if (UserError.isUserError(received)) {
7272
const pass = !!received.rawError.toString().match(regexp)
7373
return {
74-
message: () => `expected ${received} to match ${regexp}`,
74+
message: () => `expected ${received.rawError} to match ${regexp}`,
7575
pass: pass,
7676
}
7777
} else {

meteor/__mocks__/check/isPlainObject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
var class2type = {}
44

5+
// eslint-disable-next-line no-redeclare
56
var toString = class2type.toString
67

78
var hasOwn = class2type.hasOwnProperty

meteor/__mocks__/helpers/jest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export async function waitUntil(expectFcn: () => void | Promise<void>, maxWaitTi
4141
const iterateInterval = maxWaitTime < 100 ? 10 : 100
4242

4343
const startTime = Date.now()
44-
// eslint-disable-next-line no-constant-condition
4544
while (true) {
4645
await waitTime(iterateInterval)
4746
try {

meteor/__mocks__/meteor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-function-type, @typescript-eslint/only-throw-error */
12
import { USER_PERMISSIONS_HEADER } from '@sofie-automation/meteor-lib/dist/userPermissions'
23

34
let controllableDefer = false

meteor/__mocks__/mongo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/only-throw-error */
12
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
23
import _ from 'underscore'
34
import { literal, ProtectedString, unprotectString, protectString, getRandomString } from '../server/lib/tempLib'

meteor/__mocks__/suppressLogging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
12
import { overrideLogger } from '../server/logging'
23

34
export class SupressLogMessages {
@@ -40,7 +41,6 @@ export class SupressLogMessages {
4041
static expectAllMessagesToHaveBeenHandled(): void {
4142
const unhandledSuppressMessages = [...SupressLogMessages.suppressMessages]
4243
SupressLogMessages.suppressMessages.length = 0
43-
// eslint-disable-next-line jest/no-standalone-expect
4444
expect(unhandledSuppressMessages).toHaveLength(0)
4545
}
4646
}

meteor/__mocks__/tracker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export namespace TrackerMock {
116116

117117
TrackerMock.currentComputation.onInvalidate(clb)
118118
}
119+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
119120
export function afterFlush(_clb: Function): void {
120121
throw new Error(`Tracker.afterFlush() is not implemented in the mock Tracker`)
121122
}

meteor/__mocks__/validated-method.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
2+
13
interface Options {
24
name: string // DDP method name
35
mixins: any // Method extensions

meteor/__mocks__/webapp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const WebAppMock = {
2-
rawHandlers: {
2+
rawConnectHandlers: {
33
use: (): void => {
44
// No web server to setup
55
},

0 commit comments

Comments
 (0)