igniteui-cli icon indicating copy to clipboard operation
igniteui-cli copied to clipboard

[igx-ts] Refactor Authentication template JWT-Utils module

Open ViktorSlavov opened this issue 6 years ago • 0 comments

Description

The jwt-utils.ts currently exports all of its util function individually. This leads to some complications when trying to spy on these util functions in the component's spec file.

  • Ignite UI CLI version: 5.0.x
  • Framework: Angular
  • Project type: igx-ts

Proposed Change

We should consider refactoring the file to export a static class (much like we do for our internal Utils class), so that we do not have to employ workarounds in the test file.

ViktorSlavov avatar Feb 04 '20 11:02 ViktorSlavov