来源:https://stackoverflow.com/questions/64345423/how-would-i-mock-route-queryparams-in-ngoninit-in-a-spec-test 标签 angular typescript angular-routing angular-router angular2-testing