Skip to content

Commit

Permalink
test(@angular/cli): fix implicit import
Browse files Browse the repository at this point in the history
This lint error resulted from the interaction between #12554 and #12515.
  • Loading branch information
filipesilva authored and alexeagle committed Nov 1, 2018
1 parent eddad56 commit 298faa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/angular/cli/utilities/json-schema_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { schema } from '@angular-devkit/core';
import { readFileSync } from 'fs';
import { join } from 'path';
import { of } from 'rxjs';
import { CommandJsonPathException, parseJsonSchemaToCommandDescription } from './json-schema';

describe('parseJsonSchemaToCommandDescription', () => {
Expand Down Expand Up @@ -37,7 +36,7 @@ describe('parseJsonSchemaToCommandDescription', () => {
const content = readFileSync(
join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8');

return of(JSON.parse(content));
return Promise.resolve(JSON.parse(content));
} else {
return null;
}
Expand Down

0 comments on commit 298faa1

Please sign in to comment.