lundi 26 juin 2017

Testing Angular module library with Karma

I'm trying to write tests to my angular-vrviewer library.

The source code can be found in the link above.

The karma test file is the following basic test:

import { TestBed, inject, async } from '@angular/core/testing';
import { VRViewModule } from "./index";
describe('VRViewModule', () => {
    beforeEach(() => {
        TestBed.configureTestingModule({
            imports: [
                VRViewModule
            ]
        })
    })

    it('should expect', () => {
        expect(true).toBeTruthy()
    })
})

When I run npm test I get the following error:

26 06 2017 22:03:34.086:INFO [Chrome 59.0.3071 (Windows 10 0.0.0)]: Connected on socket t9YuXokLW2oXdNXkAAAB with id manual-707
Chrome 59.0.3071 (Windows 10 0.0.0): Executed 0 of 0 ERROR (0.02 secs / 0 secs)

Any idea what's wrong?

Aucun commentaire:

Enregistrer un commentaire