Skip to content

Commit

Permalink
chore: update package-lock (box/box-codegen#560) (#335)
Browse files Browse the repository at this point in the history
Co-authored-by: box-sdk-build <[email protected]>
  • Loading branch information
box-sdk-build and box-sdk-build authored Sep 6, 2024
1 parent 3e79251 commit f83807c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "66f851a", "specHash": "6ca858e", "version": "1.5.1" }
{ "engineHash": "edc49a6", "specHash": "6ca858e", "version": "1.5.1" }
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions src/test/events.generated.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ test('testEvents', async function testEvents(): Promise<any> {
if (!(events.entries!.length > 0)) {
throw new Error('Assertion failed');
}
const event: Event = events.entries![0];
if (!((toString(event.createdBy!.type) as string) == 'user')) {
const firstEvent: Event = events.entries![0];
if (!((toString(firstEvent.createdBy!.type) as string) == 'user')) {
throw new Error('Assertion failed');
}
if (!!((toString(event.eventType!) as string) == '')) {
if (!!((toString(firstEvent.eventType!) as string) == '')) {
throw new Error('Assertion failed');
}
});
Expand All @@ -66,11 +66,11 @@ test('testEventUpload', async function testEventUpload(): Promise<any> {
if (!(events.entries!.length > 0)) {
throw new Error('Assertion failed');
}
const event: Event = events.entries![0];
if (!((toString(event.eventType!) as string) == 'UPLOAD')) {
const firstEvent: Event = events.entries![0];
if (!((toString(firstEvent.eventType!) as string) == 'UPLOAD')) {
throw new Error('Assertion failed');
}
const source: EventSource = event.source! as EventSource;
const source: EventSource = firstEvent.source! as EventSource;
if (
!(
(toString(source.itemType) as string) == 'file' ||
Expand All @@ -94,11 +94,11 @@ test('testEventDeleteUser', async function testEventDeleteUser(): Promise<any> {
if (!(events.entries!.length > 0)) {
throw new Error('Assertion failed');
}
const event: Event = events.entries![0];
if (!((toString(event.eventType!) as string) == 'DELETE_USER')) {
const firstEvent: Event = events.entries![0];
if (!((toString(firstEvent.eventType!) as string) == 'DELETE_USER')) {
throw new Error('Assertion failed');
}
const source: User = event.source! as User;
const source: User = firstEvent.source! as User;
if (!((toString(source.type) as string) == 'user')) {
throw new Error('Assertion failed');
}
Expand All @@ -113,8 +113,8 @@ test('testEventSourceFileOrFolder', async function testEventSourceFileOrFolder()
if (!(events.entries!.length > 0)) {
throw new Error('Assertion failed');
}
const event: Event = events.entries![0];
const source: File = event.source! as File;
const firstEvent: Event = events.entries![0];
const source: File = firstEvent.source! as File;
if (
!(
(toString(source.type) as string) == 'file' ||
Expand Down

0 comments on commit f83807c

Please sign in to comment.