aboutsummaryrefslogtreecommitdiff
path: root/src/stores/forums.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/forums.test.js')
-rw-r--r--src/stores/forums.test.js17
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',