Expects the given file to be in the styles of the specified workspace project.
(project: ProjectDefinition, filePath: string)
| 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); |
no test coverage detected