test(upgrade): re-enable tests that have been fixed (#27305)

The fix in #27223 unblocks these tests

PR Close #27305
This commit is contained in:
Pete Bacon Darwin 2018-11-27 22:11:10 +00:00 committed by Igor Minar
parent 65775a36d7
commit 140217546d
2 changed files with 17 additions and 20 deletions

View File

@ -23,7 +23,6 @@ ts_web_test_suite(
static_files = [
"//:angularjs_scripts",
],
tags = [],
deps = [
":test_lib",
],

View File

@ -178,28 +178,26 @@ withEachNg1Version(() => {
beforeEach(() => registry.unregisterAllApplications());
afterEach(() => registry.unregisterAllApplications());
fixmeIvy('FW-561: Runtime compiler is not loaded') &&
it('should add testabilities hook when creating components', () => {
it('should add testabilities hook when creating components', () => {
let registry = TestBed.get(TestabilityRegistry);
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(1);
let registry = TestBed.get(TestabilityRegistry);
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(1);
adapter = getAdaptor(); // get a new adaptor to creat a new component
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(2);
});
adapter = getAdaptor(); // get a new adaptor to creat a new component
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(2);
});
fixmeIvy('FW-561: Runtime compiler is not loaded') &&
it('should remove the testability hook when destroy a component', () => {
const registry = TestBed.get(TestabilityRegistry);
expect(registry.getAllTestabilities().length).toEqual(0);
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(1);
adapter.registerCleanup();
element.remove !();
expect(registry.getAllTestabilities().length).toEqual(0);
});
it('should remove the testability hook when destroy a component', () => {
const registry = TestBed.get(TestabilityRegistry);
expect(registry.getAllTestabilities().length).toEqual(0);
adapter.createComponent([]);
expect(registry.getAllTestabilities().length).toEqual(1);
adapter.registerCleanup();
element.remove !();
expect(registry.getAllTestabilities().length).toEqual(0);
});
});
});