hunk.code_window: export default function() {
     return Promise.resolve()
       .then(() => expectToFail(() => ng('get', 'apps.zzz.prefix')))
       .then(() => ng('get', 'apps.0.prefix'))
       .then(({ stdout }) => {
         if (!stdout.match(/app/)) {
           throw new Error(`Expected "app", received "${JSON.stringify(stdout)}".`);
         }
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:     .then(() => expectToFail(() => ng('get')))
  
hunk.file_path: tests/e2e/tests/commands/get/get.ts
hunk.type: add
file: import { writeMultipleFiles } from '../../utils/fs';
  import { ng } from '../../utils/process';
  import { updateJsonFile } from '../../utils/project';
  import { expectToFail } from '../../utils/utils';
  import { stripIndent } from 'common-tags';
  
  // Make sure asset files are served
  export default function () {
    return Promise.resolve()
      .then(() => writeMultipleFiles({
        'src/assets/file.txt': 'assets-folder-content',
        'src/file.txt': 'file-content',
        // Not using `async()` in tests as it seemed to swallow `fetch()` errors
        'src/app/app.component.spec.ts': stripIndent`
          describe('Test Runner', () => {
            const fetch = global['fetch'];
            it('should serve files in assets folder', (done) => {
              fetch('/assets/file.txt')
                .then(response => response.text())
                .then(fileText => {
                  expect(fileText).toMatch('assets-folder-content');
                  done();
                });
            });
            it('should serve files explicitly added to assets array', (done) => {
              fetch('/file.txt')
                .then(response => response.text())
                .then(fileText => {
                  expect(fileText).toMatch('file-content');
                  done();
                });
            });
          });
        `
      }))
      // Test failure condition (no assets in .angular-cli.json)
      .then(() => updateJsonFile('.angular-cli.json', configJson => {
        const app = configJson['apps'][0];
        app['assets'] = [];
      }))
      .then(() => expectToFail(() => ng('test', '--single-run'),
        'Should fail because the assets to serve were not in the Angular CLI config'))
      // Test passing condition (assets are included)
      .then(() => updateJsonFile('.angular-cli.json', configJson => {
        const app = configJson['apps'][0];
        app['assets'] = ['assets', 'file.txt'];
      }))
      .then(() => ng('test', '--single-run'));
  }
  