Giter Site home page Giter Site logo

ng2-test-seed's People

Contributors

juliemr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ng2-test-seed's Issues

web-server not loading angular core components

Hey there,

First of, thanks Julie for the good work.

The issue now, I got Angular updated to RC4 this morning and I tried to import a service to some test such as:

import { it, inject, expect, async, addProviders, fakeAsync, tick } from '@angular/core/testing';
import { UsersService } from '../../shared/services/users.service'

describe('DEMO USER SERVICE UNIT TEST', () => {

  beforeEach(() => {
    addProviders([ UsersService ]);
  });

  it('Should Equal True', inject([ UsersService ], (service) => {
    let dummy: boolean = true;
    expect(dummy).toBe(true);
  }));
});

When I run the npm test, I get this:

01 07 2016 14:17:23.413:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
01 07 2016 14:17:23.421:INFO [launcher]: Starting browser Chrome
01 07 2016 14:17:24.442:INFO [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Connected on socket /#4suKVk9Ww8OZjzmCAAAA with id 27660481
01 07 2016 14:17:25.590:WARN [web-server]: 404: /base/node_modules/@angular/http

Directly followed by a missing error handler:

Missing error handler on `socket`.
TypeError: (msg || "").replace is not a function
    at /usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/reporter.js:45:23
    at onBrowserError (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/reporters/base.js:58:60)
    at null.<anonymous> (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:100:13)
    at emit (events.js:185:7)
    at onKarmaError (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/browser.js:95:13)
    at Socket.<anonymous> (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/events.js:13:22)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Socket.onevent (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/socket.js:335:8)
    at Socket.onpacket (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/socket.js:295:12)
    at Client.ondecoded (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/client.js:193:14)
    at Decoder.Emitter.emit (/usr/local/var/projects/poc.dev/toplink/node_modules/component-emitter/index.js:134:20)
    at Decoder.add (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io-parser/index.js:247:12)
    at Client.ondata (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/client.js:175:18)
    at emitOne (events.js:90:13)
01 07 2016 14:17:27.607:WARN [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Disconnected (1 times)

Does anyone faced the same issue ? Or maybe I miss something...

Thank you.

M

Working Seed

Hi,

as this repo is empty, I'm wondering whether there is a working work-in-progress-version of this somewhere. I'm helping customers with getting started with angular 2 on a regular basis those days, and having an "official" seed with support for testing would really come in handy.

Wishes,
Manfred

Third Party Library example

It would nice to be able to see an example that uses third party libraries also.

I'm currently trying to get the example to work with jspm and system.js.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.