From 5fc4715f923e5a0935cff2030325608ea6ddc0d6 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 2 May 2021 20:16:44 +0200 Subject: Add tags store pact tests --- src/stores/posts.test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/stores/posts.test.js') diff --git a/src/stores/posts.test.js b/src/stores/posts.test.js index acd843c..5d1fc05 100644 --- a/src/stores/posts.test.js +++ b/src/stores/posts.test.js @@ -3,7 +3,7 @@ import { resolve } from 'path'; import { resolveAfter } from '$/utils/resolve_after'; -const { eachLike, like } = Matchers; +const { like } = Matchers; jest.mock('$/config/config.js'); @@ -66,7 +66,7 @@ describe('Posts store pact', () => { }` ) .withVariables({ - id: 'freezer' + id: '8f75eba5-6989-4dd3-b466-e464546ce374' }) .willRespondWith({ status: 200, @@ -96,7 +96,7 @@ describe('Posts store pact', () => { test('it returns the post', async () => { - const post = getPost('freezer'); + const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374'); const { counter, promise: resolveAfterTwo } = resolveAfter(2); let response = null; post.subscribe((postValue) => { @@ -162,7 +162,7 @@ describe('Posts store pact', () => { }` ) .withVariables({ - id: 'freezer' + id: '8f75eba5-6989-4dd3-b466-e464546ce374' }) .willRespondWith({ status: 200, @@ -180,7 +180,7 @@ describe('Posts store pact', () => { test('it returns the post', async () => { - const post = getPost('freezer'); + const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374'); const { counter, promise: resolveAfterTwo } = resolveAfter(2); let response = null; post.subscribe((postValue) => { @@ -234,7 +234,7 @@ describe('Posts store pact', () => { }` ) .withVariables({ - id: 'freezer' + id: '8f75eba5-6989-4dd3-b466-e464546ce374' }) .willRespondWith({ status: 500 @@ -244,7 +244,7 @@ describe('Posts store pact', () => { test('it returns the error', async () => { - const post = getPost('freezer'); + const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374'); const { counter, promise: resolveAfterTwo } = resolveAfter(2); let response = null; post.subscribe((postValue) => { -- cgit