anchor.diff:    Both the compiler and karma continue to run. The compiler output is preceeded by `[0]`; 
     the karma output by `[1]`.
   
  +  编译器和`Karma`都会持续运行。编译器的输入信息前面有`[0]`，`Karma`的输出前面有`[1]`。
  +
     Change the expectation from `true` to `false`.
   
  +  将期望从`true`变换为`false`。
  +
     The _compiler_ watcher detects the change and recompiles.
  +
  +  **编译器**监视器检测到这个变化并重新编译。
   
   code-example(format="." language="bash").
     [0] 1:49:21 PM - File change detected. Starting incremental compilation...
  
positive.code:     **The filename extension must be `.spec.ts`**, 
      the convention adhered to by  `karma.conf.js` and other tooling.
  
  :marked
    **Put spec files somewhere within the `app/` folder.**
    The `karma.conf.js` tells karma to look for spec files there,
    for reasons explained [below](#spec-file-location).
  
    Add the following code to `app/1st.spec.ts`.
  +makeExample('testing/ts/app/1st.spec.ts', '', 'app/1st.spec.ts')(format='.')
  :marked
    ## Run karma
    Compile and run it in karma from the command line.
  
  .l-sub-section
    :marked
      The QuickStart repo adds the following command to the `scripts` section in  `package.json`.
  
    code-example(format="." language="bash").
      "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"",
    :marked
      Add that to your `package.json` if it's not there already.
  
  :marked
    Open a terminal or command window and enter
  code-example(format="." language="bash").
    npm test
  :marked
    The command compiles the application and test code a first time. 
    If the compile fails, the command aborts.
  
    If it succeeds, the command re-compiles (this time in watch mode) in one process
    and starts karma in another.
    Both processes watch pertinent files and re-run when they detect changes.
  
    After a few moments, karma opens a browser ...
  figure.image-display
    img(src='/resources/images/devguide/testing/karma-browser.png' style="width:400px;" alt="Karma browser")
  :marked
    ... and starts writing to the console.
  
    Hide (don't close!) the browser and focus on the console output which should look something like this.
  
  code-example(format="." language="bash").
    > npm test
  
negative.code:         An optional file that supplements the SystemJS configuration in `systemjs.config.js` with
          configuration for the specific needs of the application itself.
  
          一个可有可无的文件，用来配置应用自己特殊的需求，补充`systemjs.config.js`里面的SystemJS配置。
  
          A stock `systemjs.config.js` can't anticipate those needs. 
          You fill the gaps here.
  
          原装`systemjs.config.js`无法预测这些需求。你可以在这里填补空白。
  
          The sample version for this chapter adds the **model barrel**
          to the SystemJs `packages` configuration.
  
          本章例子添加了**模型封装桶**到SystemJS的`packages`配置。
    tr
      td(colspan="2") 
        +makeExample('testing/ts/systemjs.config.extras.js', '', 'systemjs.config.extras.js')(format='.')
   
  :marked
    ### npm packages
  
    ### npm包
  
    The sample tests are written to run in Jasmine and karma.
    The two "fast path" setups added the appropriate Jasmine and karma npm packages to the 
    `devDependencies` section of the `package.json`.
    They were installed when you ran `npm install`.
  
    例子中的测试是按照能在`Jasmine`和`Karma`中运行的规格编写的。以上两种“快速途径”配置测试环境，都在`package.json`的`devDependencies`中添加了合适的`Jasmine`和`karma`的`npm`包。
    你运行`npm install`时就会安装它们。
  
  .l-hr
  a#1st-karma-test
  :marked
    # The first karma test
  
    # 第一个`karma`测试
  
    Start with a simple test to make sure the setup works properly.
  
    编写一个简单的测试，来确认以上的配置是否工作正常。
  
    Create a new file called `1st.spec.ts` in the application root folder, `app/`
  
    在应用的根目录`app/`创建一个新文件，名叫`1st.spec.ts`。
  
  .alert.is-important
    :marked
  