All common directives, forms, and pipes have been moved out of angular2/core,
but we kept reexporting them to make transition easier.
This commit removes the reexports.
BREAKING CHANGE
Before
import {NgIf} from 'angular2/core';
After
import {NgIf} from 'angular2/common';
Closes #5362
		
	
			
		
			
				
	
	
		
			45 lines
		
	
	
		
			939 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			939 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import {
 | 
						|
  ddescribe,
 | 
						|
  describe,
 | 
						|
  it,
 | 
						|
  iit,
 | 
						|
  xit,
 | 
						|
  expect,
 | 
						|
  beforeEach,
 | 
						|
  afterEach
 | 
						|
} from 'angular2/testing_internal';
 | 
						|
 | 
						|
import {LowerCasePipe} from 'angular2/common';
 | 
						|
 | 
						|
export function main() {
 | 
						|
  describe("LowerCasePipe", () => {
 | 
						|
    var upper;
 | 
						|
    var lower;
 | 
						|
    var pipe;
 | 
						|
 | 
						|
    beforeEach(() => {
 | 
						|
      lower = 'something';
 | 
						|
      upper = 'SOMETHING';
 | 
						|
      pipe = new LowerCasePipe();
 | 
						|
    });
 | 
						|
 | 
						|
    describe("transform", () => {
 | 
						|
      it("should return lowercase", () => {
 | 
						|
        var val = pipe.transform(upper);
 | 
						|
        expect(val).toEqual(lower);
 | 
						|
      });
 | 
						|
 | 
						|
      it("should lowercase when there is a new value", () => {
 | 
						|
        var val = pipe.transform(upper);
 | 
						|
        expect(val).toEqual(lower);
 | 
						|
        var val2 = pipe.transform('WAT');
 | 
						|
        expect(val2).toEqual('wat');
 | 
						|
      });
 | 
						|
 | 
						|
      it("should not support other objects",
 | 
						|
         () => { expect(() => pipe.transform(new Object())).toThrowError(); });
 | 
						|
    });
 | 
						|
 | 
						|
  });
 | 
						|
}
 |