fix webscript tests

This commit is contained in:
Eugenio Romano
2016-08-18 17:22:25 +01:00
parent c82b69a4bf
commit e2b3259e14
2 changed files with 2 additions and 39 deletions

View File

@@ -18,7 +18,6 @@
import { describe, expect, it, inject, beforeEachProviders, beforeEach, afterEach, xit } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
import { WebscriptComponent } from '../src/webscript.component';
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
@@ -30,7 +29,7 @@ describe('Test ng2-alfresco-webscript', () => {
beforeEachProviders(() => {
return [
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
AlfrescoSettingsService,
AlfrescoAuthenticationService
];
});
@@ -86,7 +85,7 @@ describe('Test ng2-alfresco-webscript', () => {
component.ngOnChanges().then(() => {
webscriptComponentFixture.detectChanges();
let request = jasmine.Ajax.requests.mostRecent();
expect(request.url).toBe('fakehost/alfresco/service/sample/folder/Company%20Home');
expect(request.url).toBe('http://localhost:8080/alfresco/service/sample/folder/Company%20Home');
done();
});