aboutsummaryrefslogtreecommitdiff
path: root/src/stores/posts.test.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-05-02 20:16:44 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-05-02 20:16:44 +0200
commit5fc4715f923e5a0935cff2030325608ea6ddc0d6 (patch)
tree39284ff13d21a7c53466c24344b37a3649837a28 /src/stores/posts.test.js
parentb15225c9dff2864ee774a0ab1dcf19d9353ec10b (diff)
Add tags store pact tests
Diffstat (limited to 'src/stores/posts.test.js')
-rw-r--r--src/stores/posts.test.js14
1 files changed, 7 insertions, 7 deletions
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) => {