push
github
2100 of 3363 branches covered (62.44%)
282 of 757 new or added lines in 74 files covered. (37.25%)
14879 existing lines in 182 files now uncovered.25574 of 98035 relevant lines covered (26.09%)
5.17 hits per line
1 |
import type { IncomingHttpHeaders } from 'http'; |
1✔ |
2 |
import type { OpName } from '@teable/core'; |
1✔ |
3 |
import { nanoid } from 'nanoid'; |
1✔ |
4 |
import type { Events } from './event.enum'; |
1✔ |
5 |
|
1✔ |
6 |
export interface IEventContext {
|
1✔ |
7 |
user?: { |
1✔ |
8 |
id: string; |
1✔ |
9 |
name: string; |
1✔ |
10 |
email: string; |
1✔ |
11 |
}; |
1✔ |
12 |
headers?: Record<string, string | undefined> | IncomingHttpHeaders; |
1✔ |
13 |
opMeta?: { |
1✔ |
14 |
name: OpName;
|
1✔ |
15 |
propertyKey?: string;
|
1✔ |
16 |
}; |
1✔ |
17 |
} |
1✔ |
18 |
|
1✔ |
19 |
export abstract class CoreEvent<Payload extends object = object> { |
|
UNCOV
20
|
abstract name: Events; |
× |
UNCOV
21
|
|
× |
UNCOV
22
|
constructor( |
× |
UNCOV
23
|
public readonly payload: Payload,
|
× |
UNCOV
24
|
public readonly context: IEventContext,
|
× |
UNCOV
25
|
public readonly isBulk = false, |
× |
UNCOV
26
|
public readonly id = nanoid()
|
× |
UNCOV
27
|
) {} |
× |
UNCOV
28
|
} |
× |