These are chat archives for AngularClass/angular2-webpack-starter

29th
Oct 2015
Artur Rozwalak
@arozwalak
Oct 29 2015 14:35
Hi, I just found this project and it's what I was looking for some time. Just have one quick question about unit tests
ie. if i have component in app/components/todo/todo.ts how can I import it to my test file which is in test/app/components/todo/todo.spec.ts
Artur Rozwalak
@arozwalak
Oct 29 2015 14:41
I tried this way but it's not working
import { Todo } from '../../../../src/app/components/Todo/Todo';

describe('App', () => {
    var Todo = new Todo();
    it('should also be able to test', () => {
        expect(true).toBe(true);
});

});