angular-spectator

Angular Spectator setInput not working for non-string input

此生再无相见时 提交于 2020-06-16 18:01:10
问题 I've successfully converted my project to use Jest in place of Karma/Jasmine and I have lots of tests that are working just fine. I'm trying to do what should be a very simple test using Spectator (^5.2.1) but it's not working. I'm trying to test a library component that uses mat-table to render a table. Inputs are title:string, columns: BehaviorSubject<MyColumnDefType> | MyColumnDefType[], dataSource: MyDataSource | any[] The component works fine, and all my other tests work, up until I

Angular Spectator setInput not working for non-string input

有些话、适合烂在心里 提交于 2020-06-16 18:00:20
问题 I've successfully converted my project to use Jest in place of Karma/Jasmine and I have lots of tests that are working just fine. I'm trying to do what should be a very simple test using Spectator (^5.2.1) but it's not working. I'm trying to test a library component that uses mat-table to render a table. Inputs are title:string, columns: BehaviorSubject<MyColumnDefType> | MyColumnDefType[], dataSource: MyDataSource | any[] The component works fine, and all my other tests work, up until I