You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cetincakiroglu
added
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
May 2, 2024
Describe the bug
When trying to run npm run test, we have the following compilation errors:
Error: src/app/components/picklist/picklist.spec.ts:253:18 - error TS2554: Expected 5-6 arguments, but got 4.
253 picklist.onItemClick(event, picklist.source[0], picklist.selectedItemsSource, callback);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/components/picklist/picklist.ts:922:88
922 onItemClick(event: Event | any, item: any, selectedItems: any[], listType: number, callback: EventEmitter, itemId?: string) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
An argument for 'callback' was not provided.
\ Generating browser application bundles (phase: building)...01 05 2024 08:35:45.785:WARN [karma]: No captured browser, open http://localhost:9877/
01 05 2024 08:35:45.861:INFO [karma-server]: Karma v6.4.3 server started at http://localhost:9877/
01 05 2024 08:35:45.862:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
01 05 2024 08:35:45.874:INFO [launcher]: Starting browser Chrome
√ Browser application bundle generation complete.
Error: src/app/components/picklist/picklist.spec.ts:253:18 - error TS2554: Expected 5-6 arguments, but got 4.
253 picklist.onItemClick(event, picklist.source[0], picklist.selectedItemsSource, callback);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/components/picklist/picklist.ts:922:88
922 onItemClick(event: Event | any, item: any, selectedItems: any[], listType: number, callback: EventEmitter, itemId?: string) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
An argument for 'callback' was not provided.
01 05 2024 08:35:47.791:INFO [Chrome 123.0.0.0 (Windows 10)]: Connected on socket qxY6PvR5UzstF3J0AAAB with id 89045588
01 05 2024 08:35:48.844:WARN [web-server]: 404: /karma_webpack/main.js
Chrome 123.0.0.0 (Windows 10): Executed 0 of 0 SUCCESS (0.002 secs / 0 secs)
TOTAL: 0 SUCCESS
Environment
windows
Reproducer
No response
Angular version
17.3.6
PrimeNG version
17.15.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v21.7.3
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: