mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
clean unit test (#4890)
* promote use setupTestbed * fix comment using right spy and remove deprecated moment method usage * restore md icon file * remove error translation log * restore extension test
This commit is contained in:
@@ -15,18 +15,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { JwtHelperService } from './jwt-helper.service';
|
||||
import { mockToken } from './../mock/jwt-helper.service.spec';
|
||||
import { setupTestBed } from '../testing/setupTestBed';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
describe('JwtHelperService', () => {
|
||||
|
||||
let jwtHelperService: JwtHelperService;
|
||||
|
||||
setupTestBed({
|
||||
providers: [JwtHelperService]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [JwtHelperService]
|
||||
});
|
||||
jwtHelperService = TestBed.get(JwtHelperService);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user