Skip to content

Commit

Permalink
Solving tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorDiaconu committed Mar 16, 2020
1 parent 24a90d0 commit 171752a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions __tests__/morpher/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { expose, db } from 'meteor/cultofcoders:apollo';
import { expose, db } from "meteor/cultofcoders:apollo";
import { Mongo } from "meteor/mongo";

export const TestCollection = new Mongo.Collection("tests");

expose({
users: {
type: 'User',
type: "User",
collection: () => db.users,
update: () => true,
insert: () => true,
remove: () => true,
find: () => true,
},
find: () => true
}
});
6 changes: 3 additions & 3 deletions __tests__/morpher/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import setupMutations from "../../server/morpher/setupMutations";
import setupDataFetching from "../../server/morpher/setupDataFetching";
import { assert } from "chai";

describe.only("Unit tests", () => {
describe("Unit tests", () => {
it("Should send all the right args to the config functions", () => {
const testRest = [
{},
Expand Down Expand Up @@ -51,7 +51,7 @@ describe.only("Unit tests", () => {
},
"test",
"TestEntity",
() => db.users
() => db.tests
);

const { Query } = setupDataFetching(
Expand All @@ -63,7 +63,7 @@ describe.only("Unit tests", () => {
},
"test",
"TestEntity",
() => db.users
() => db.tests
);

const safeRun = fn => {
Expand Down

0 comments on commit 171752a

Please sign in to comment.