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 = [ static_files = [
"//:angularjs_scripts", "//:angularjs_scripts",
], ],
tags = [],
deps = [ deps = [
":test_lib", ":test_lib",
], ],

View File

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