https://github.com/angular/angular
Raw File
Tip revision: 60a30818efc5c7796eed36573ab1608dc7f46937 authored by Misko Hevery on 01 December 2017, 05:38:52 UTC
docs: add changelog for 5.1.0-rc.0
Tip revision: 60a3081
config_spec.ts
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {MissingTranslationStrategy} from '@angular/core';
import {CompilerConfig} from '../src/config';

export function main() {
  describe('compiler config', () => {
    it('should set missing translation strategy', () => {
      const config = new CompilerConfig({missingTranslation: MissingTranslationStrategy.Error});
      expect(config.missingTranslation).toEqual(MissingTranslationStrategy.Error);
    });
  });
}
back to top