mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Ban xit and xdescribe use in the future (#4923)
* remove xit test and ban xit and xdescribe use in the future * remove xit test and ban xit and xdescribe use in the future * remove test excluded * remove consecutive blank line
This commit is contained in:
@@ -21,8 +21,6 @@ import { TranslationService } from './translation.service';
|
||||
import { setupTestBed } from '../testing/setupTestBed';
|
||||
import { CoreModule } from '../core.module';
|
||||
|
||||
const componentJson1 = ' {"TEST": "This is a test", "TEST2": "This is another test"} ' ;
|
||||
|
||||
declare let jasmine: any;
|
||||
|
||||
describe('TranslateLoader', () => {
|
||||
@@ -57,20 +55,4 @@ describe('TranslateLoader', () => {
|
||||
expect(customLoader.providerRegistered('login')).toBeTruthy();
|
||||
});
|
||||
|
||||
xit('should return the Json translation ', () => {
|
||||
customLoader.registerProvider('login', 'path/login');
|
||||
customLoader.getTranslation('en').subscribe(
|
||||
(response) => {
|
||||
expect(response).toBeDefined();
|
||||
expect(response).toEqual(JSON.parse(componentJson1));
|
||||
}
|
||||
);
|
||||
|
||||
jasmine.Ajax.requests.mostRecent().respondWith({
|
||||
'status': 200,
|
||||
contentType: 'application/json',
|
||||
responseText: componentJson1
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user