LWC - Unit Testing NavigationMixin.GenerateUrl
The default mock implementation for NavigationMixin
doesn't provide a promise.
You'll have to create your own mock implementation, either globally for your project, or specific to your component, which then works for your use case. As it's not about testing NavigationMixin
you should run the latter approach.