Skip to content

Commit

Permalink
tests(sdk,client): update since datasource is not required anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Aug 24, 2020
1 parent 162534b commit 42e5d45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10911,18 +10911,6 @@ Object {
}
`;

exports[`getDMMF no datasource should get a validation error 1`] = `
"Schema parsing
error: Error validating: You defined no datasource. You must define exactly one datasource.
--> schema.prisma:1
|
|
1 | model A {
|
Validation Error Count: 1"
`;
exports[`getDMMF simple model 2`] = `
Object {
"datamodel": Object {
Expand Down
15 changes: 0 additions & 15 deletions src/packages/sdk/src/__tests__/engineCommands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ import path from 'path'
jest.setTimeout(10000)

describe('getDMMF', () => {
test('no datasource should get a validation error', async () => {
const datamodel = `model A {
id Int @id
name String
}
`
/* eslint-disable jest/no-try-expect */
try {
await getDMMF({ datamodel })
} catch (e) {
expect(stripAnsi(e.message)).toMatchSnapshot()
}
/* eslint-enable jest/no-try-expect */
})

test('simple model', async () => {
const dmmf = await getDMMF({
datamodel: `
Expand Down

0 comments on commit 42e5d45

Please sign in to comment.