MCPcopy Create free account
hub / github.com/angular/components / expectProjectStyleFile

Function expectProjectStyleFile

src/material/schematics/ng-add/index.spec.ts:41–45  ·  view source on GitHub ↗

Expects the given file to be in the styles of the specified workspace project.

(project: ProjectDefinition, filePath: string)

Source from the content-addressed store, hash-verified

39
40 /** Expects the given file to be in the styles of the specified workspace project. */
41 function expectProjectStyleFile(project: ProjectDefinition, filePath: string) {
42 expect(getProjectTargetOptions(project, 'build')['styles'])
43 .withContext(`Expected "${filePath}" to be added to the project styles in the workspace.`)
44 .toContain(filePath);
45 }
46
47 it('should update package.json', async () => {
48 const tree = await runner.runSchematic('ng-add', baseOptions, appTree);

Callers 1

index.spec.tsFile · 0.85

Calls 1

getProjectTargetOptionsFunction · 0.90

Tested by

no test coverage detected