Skip to content

Commit

Permalink
activate include test
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jul 26, 2019
1 parent 674c9cb commit c0ecab2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cli/prisma2/src/__tests__/integrate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ function tests() {
},
},
{
// todo: true,
before: `
create table if not exists teams (
id int primary key not null,
Expand All @@ -146,7 +145,6 @@ function tests() {
},
},
{
todo: true,
before: `
create table if not exists users (
id serial primary key not null,
Expand All @@ -171,7 +169,18 @@ function tests() {
return client.users.findOne({ where: { id: 1 }, include: { posts: true } })
},
expect: {
name: 'b',
email: 'ada@prisma.io',
id: 1,
posts: [
{
id: 1,
title: 'A',
},
{
id: 2,
title: 'B',
},
],
},
},
{
Expand Down

0 comments on commit c0ecab2

Please sign in to comment.