Skip to content

Commit

Permalink
fixup! fix(language-service): Recover from error in analyzing Ng Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazhafiz committed Jun 3, 2020
1 parent c03f890 commit 06695f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/language-service/test/typescript_host_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ describe('TypeScriptServiceHost', () => {
// If analyzing modules throws, the old modules should be returned.
let newModules = ngLSHost.getAnalyzedModules();
expect(newModules.ngModules).toEqual([]);
expect(tsLSHost.errors).toEqual(['Analyzing NgModules failed. Error: CommonModule cannot be used as an entry component.']);
expect(tsLSHost.errors).toEqual([
'Analyzing NgModules failed. Error: CommonModule cannot be used as an entry component.'
]);

content = `
import {CommonModule} from '@angular/common';
Expand Down

0 comments on commit 06695f6

Please sign in to comment.