Skip to content

Commit

Permalink
All postgres tables generated correctly (AFAICT)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Jan 22, 2020
1 parent 2219d81 commit 904ed0d
Show file tree
Hide file tree
Showing 27 changed files with 1,384 additions and 611 deletions.
4 changes: 2 additions & 2 deletions api-tests/relationships/crud/one-to-many.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
})
);

test.failing(
test(
'With nested connect',
runner(setupKeystone, async ({ keystone }) => {
const { companies } = await createInitialData(keystone);
Expand Down Expand Up @@ -337,7 +337,7 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
})
);

test.failing(
test(
'With nested create',
runner(setupKeystone, async ({ keystone }) => {
const locationName = sampleOne(alphanumGenerator);
Expand Down
4 changes: 2 additions & 2 deletions api-tests/relationships/crud/one-to-one.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
})
);

test.failing(
test(
'With nested connect',
runner(setupKeystone, async ({ keystone }) => {
const { companies } = await createInitialData(keystone);
Expand Down Expand Up @@ -215,7 +215,7 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
})
);

test.failing(
test(
'With nested create',
runner(setupKeystone, async ({ keystone }) => {
const locationName = sampleOne(alphanumGenerator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function setupKeystone(adapterName) {
multiAdapterRunners().map(({ runner, adapterName }) =>
describe(`Adapter: ${adapterName}`, () => {
describe('Reconnect', () => {
test.failing(
test(
'Reconnect from the many side',
runner(setupKeystone, async ({ keystone, create }) => {
// Create some notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
const companyId = data.createCompany.id;
const locationId = data.createCompany.location.id;

const location = await findById('Location', locationId);
const company = await findById('Company', companyId);

// Everything should now be connected
// Everything should now be connected. 1:1 has a single connection on the first list defined.
expect(company.location.toString()).toBe(locationId.toString());
expect(location.company.toString()).toBe(companyId.toString());
})
);
});
Expand Down
Loading

0 comments on commit 904ed0d

Please sign in to comment.