2.0.0 • Published 7 years ago

dng-test-utils v2.0.0

Weekly downloads
8
License
MIT
Repository
-
Last release
7 years ago

DNG Test Utils

Overview

Reduces boiler plate in Angular test code. Specifically regarding mocking dependencies and working with promises.

Install

npm install -D dng-test-utils

Setup

The bare bones setup looks something like this:

import dngTestUtils from 'dng-test-utils';
import moduleToTest from './module-to-test';

// ...then in your top level describe block...

beforeEach(dngTestUtils.init(moduleToTest.name, [nullMocks], { customMocks }));

The sample test file has much more detail.

More Info

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago