diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-05-02 19:53:10 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-05-02 19:53:10 +0200 |
| commit | b15225c9dff2864ee774a0ab1dcf19d9353ec10b (patch) | |
| tree | c492bdda4ae0f1471a9fc8fda6583703cb227269 /src/stores/forums.test.js | |
| parent | 605230e032808155d62ed773cc551b5ae1847a5f (diff) | |
Add posts store pact test
Diffstat (limited to 'src/stores/forums.test.js')
| -rw-r--r-- | src/stores/forums.test.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/stores/forums.test.js b/src/stores/forums.test.js index e117828..eb4bc07 100644 --- a/src/stores/forums.test.js +++ b/src/stores/forums.test.js @@ -20,8 +20,9 @@ describe('Forums store pact', () => { internals.provider = new Pact({ port: 1234, dir: resolve(process.cwd(), 'pacts'), - consumer: 'ForumsStore', - provider: 'ForumAPIServer' + consumer: 'ForumClient', + provider: 'ForumServer', + pactfileWriteMode: 'update' }); await internals.provider.setup(); @@ -30,14 +31,14 @@ describe('Forums store pact', () => { afterEach(() => internals.provider.verify()); afterAll(() => internals.provider.finalize()); - describe('When there\'s forums', () => { + describe('When there\'s data', () => { describe('GetForums', () => { beforeAll(async () => { const forumQuery = new GraphQLInteraction() - .given('there\'s forums') + .given('there\'s data') .uponReceiving('a request to list the forums') .withRequest({ path: '/graphql', @@ -106,7 +107,7 @@ describe('Forums store pact', () => { beforeAll(async () => { const forumQuery = new GraphQLInteraction() - .given('there\'s forums') + .given('there\'s data') .uponReceiving('a request to get a single forum') .withRequest({ path: '/graphql', @@ -189,14 +190,14 @@ describe('Forums store pact', () => { }); }); - describe('When there\'s no forums', () => { + describe('When there\'s no data', () => { describe('GetForums', () => { beforeAll(async () => { const forumQuery = new GraphQLInteraction() - .given('there\'s no forums') + .given('there\'s no data') .uponReceiving('a request to list the forums') .withRequest({ path: '/graphql', @@ -256,7 +257,7 @@ describe('Forums store pact', () => { beforeAll(async () => { const forumQuery = new GraphQLInteraction() - .given('there\'s no forums') + .given('there\'s no data') .uponReceiving('a request to get a single forum') .withRequest({ path: '/graphql', |