Skip to content

Commit

Permalink
fix: aas-server unit test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Jan 21, 2024
1 parent 46a116b commit c81dc7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"WEB_ROOT": "projects/aas-portal/dist",
"ASSETS": "projects/aas-server/src/assets",
"USER_STORAGE": "mongodb://localhost:27017/aasportal-users",
"AAS_INDEX": "mysql://aasportal:aas-server@localhost:3306",
"ENDPOINTS": "[\"file:///samples?name=Samples\"]",
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('HttpSubscription', function () {
expect(subscription).toBeTruthy();
});

it('open/close subscription', function (done: DoneFn) {
it('open/close subscription', (done: DoneFn) => {
jest.useFakeTimers();
aasxServer.readValueAsync.mockReturnValue(
new Promise<DefaultType>(result => {
Expand Down
2 changes: 1 addition & 1 deletion projects/aas-server/src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function createSpyObj<T extends object>(
return obj as jest.Mocked<T>;
}

export type DoneFn = (...args: object[]) => void;
export type DoneFn = (...args: any[]) => void;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function fail(message?: string) {
Expand Down
2 changes: 1 addition & 1 deletion projects/common/src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function createSpyObj<T extends object>(
return obj as jest.Mocked<T>;
}

export type DoneFn = (...args: unknown[]) => void;
export type DoneFn = (...args: any[]) => void;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function fail(message?: string) {
Expand Down

0 comments on commit c81dc7a

Please sign in to comment.