Skip to content

Commit

Permalink
chore: move bad fixtures to separate directory (#82)
Browse files Browse the repository at this point in the history
To allow regenerating good fixtures, move the bad fixtures to
their own directory.
  • Loading branch information
achingbrain authored Jan 31, 2023
1 parent 311b622 commit 76aa198
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/protons/test/unsupported.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { generate } from '../src/index.js'

describe('unsupported', () => {
it('should refuse to generate source from proto2 definition', async () => {
await expect(generate('test/fixtures/proto2.proto', {})).to.eventually.be.rejected
await expect(generate('test/bad-fixtures/proto2.proto', {})).to.eventually.be.rejected
.with.property('message').that.contain('"required" fields are not allowed in proto3')
})

it('should refuse to generate source from empty definition', async () => {
await expect(generate('test/fixtures/empty.proto', {})).to.eventually.be.rejected
await expect(generate('test/bad-fixtures/empty.proto', {})).to.eventually.be.rejected
.with.property('message').that.contain('No top-level messages found in protobuf')
})
})

0 comments on commit 76aa198

Please sign in to comment.