chore: Upgrade Babel, Jest, Eslint (#1437)
* chore: Upgrade Prettier 1.8 -> 2.0 * chore: Upgrade Babel 6 -> 7 * chore: Upgrade eslint plugins * chore: Add eslint import/order rules * chore: Update flow-typed deps
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* eslint-disable flowtype/require-valid-file-annotation */
|
||||
import { flushdb, seed } from "../test/support";
|
||||
import uuid from "uuid";
|
||||
import { Collection, Document } from "../models";
|
||||
import {
|
||||
buildUser,
|
||||
@ -7,9 +7,9 @@ import {
|
||||
buildCollection,
|
||||
buildTeam,
|
||||
} from "../test/factories";
|
||||
import uuid from "uuid";
|
||||
import { flushdb, seed } from "../test/support";
|
||||
|
||||
beforeEach(flushdb);
|
||||
beforeEach(() => flushdb());
|
||||
beforeEach(jest.resetAllMocks);
|
||||
|
||||
describe("#url", () => {
|
||||
@ -19,7 +19,7 @@ describe("#url", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("#addDocumentToStructure", async () => {
|
||||
describe("#addDocumentToStructure", () => {
|
||||
test("should add as last element without index", async () => {
|
||||
const { collection } = await seed();
|
||||
const id = uuid.v4();
|
||||
@ -86,7 +86,7 @@ describe("#addDocumentToStructure", async () => {
|
||||
expect(collection.documentStructure[0].children[0].id).toBe(id);
|
||||
});
|
||||
|
||||
describe("options: documentJson", async () => {
|
||||
describe("options: documentJson", () => {
|
||||
test("should append supplied json over document's own", async () => {
|
||||
const { collection } = await seed();
|
||||
const id = uuid.v4();
|
||||
|
Reference in New Issue
Block a user