From 76aa19882cd9fb4fa918dda6701b1f7b4ad740a4 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 31 Jan 2023 09:42:51 +0100 Subject: [PATCH] chore: move bad fixtures to separate directory (#82) To allow regenerating good fixtures, move the bad fixtures to their own directory. --- packages/protons/test/{fixtures => bad-fixtures}/empty.proto | 0 packages/protons/test/{fixtures => bad-fixtures}/proto2.proto | 0 packages/protons/test/unsupported.spec.ts | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/protons/test/{fixtures => bad-fixtures}/empty.proto (100%) rename packages/protons/test/{fixtures => bad-fixtures}/proto2.proto (100%) diff --git a/packages/protons/test/fixtures/empty.proto b/packages/protons/test/bad-fixtures/empty.proto similarity index 100% rename from packages/protons/test/fixtures/empty.proto rename to packages/protons/test/bad-fixtures/empty.proto diff --git a/packages/protons/test/fixtures/proto2.proto b/packages/protons/test/bad-fixtures/proto2.proto similarity index 100% rename from packages/protons/test/fixtures/proto2.proto rename to packages/protons/test/bad-fixtures/proto2.proto diff --git a/packages/protons/test/unsupported.spec.ts b/packages/protons/test/unsupported.spec.ts index 1e9ad25..7f29154 100644 --- a/packages/protons/test/unsupported.spec.ts +++ b/packages/protons/test/unsupported.spec.ts @@ -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') }) })