Skip to content

Commit

Permalink
test: refactor serializer tests to improve coverage (#408)
Browse files Browse the repository at this point in the history
* test: refactor serializer tests to improve coverage

* fix: move timeout in serializer tests

* test: cover missed lines in serializer tests

* fix: use namespaced checks in serializer tests

* fix: get serializer tests passing on postgres
  • Loading branch information
zacharygolba authored Sep 22, 2016
1 parent 999f649 commit 29dab32
Show file tree
Hide file tree
Showing 4 changed files with 504 additions and 253 deletions.
31 changes: 31 additions & 0 deletions decl/faker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// @flow
declare module 'faker' {
declare interface name {
static firstName(): string;
static lastName(): string;
}

declare interface image {
static imageUrl(): string;
}

declare interface lorem {
static word(): string;
static sentence(): string;
static paragraph(): string;
static paragraphs(): string;
}

declare interface random {
static boolean(): boolean;
}

declare interface helpers {
static randomize<T>(options: Array<T>): T;
}

declare interface internet {
static email(): string;
static password(length?: number): string;
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"codecov": "1.0.1",
"documentation": "4.0.0-beta9",
"eslint-plugin-flowtype": "2.19.0",
"faker": "3.1.0",
"flow-bin": "0.32.0",
"mocha": "3.0.2",
"node-fetch": "1.6.1",
Expand Down
76 changes: 0 additions & 76 deletions src/packages/serializer/test/fixtures/data.js

This file was deleted.

Loading

0 comments on commit 29dab32

Please sign in to comment.