aboutsummaryrefslogtreecommitdiff
path: root/src/lib/stores/posts.test.ts
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-12-24 12:31:07 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-12-24 12:31:07 +0100
commit3d65cb04707cf3af11885995fd1110a5971d8b00 (patch)
tree7499ab3483d59138d9b421902ab4d282ea534b8f /src/lib/stores/posts.test.ts
parent6ccc6f60fc85e665c8a07a169efbe8d09c9d9e8e (diff)
Don't remember what this WIP was aboutHEADmain
Diffstat (limited to 'src/lib/stores/posts.test.ts')
-rw-r--r--src/lib/stores/posts.test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/stores/posts.test.ts b/src/lib/stores/posts.test.ts
index ef1835d..df9b57c 100644
--- a/src/lib/stores/posts.test.ts
+++ b/src/lib/stores/posts.test.ts
@@ -7,13 +7,13 @@ const { eachLike, like } = Matchers;
jest.mock('$lib/config/config.ts');
-import { getPost } from './posts';
+import { post } from './posts';
const internals = {
provider: null
};
-describe('Posts store pact', () => {
+describe('post', () => {
beforeAll(async () => {
internals.provider = new Pact({
port: 1234,
@@ -90,7 +90,7 @@ describe('Posts store pact', () => {
});
test('it returns the post', async () => {
- const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374');
+ const post = post('8f75eba5-6989-4dd3-b466-e464546ce374');
const { counter, promise: resolveAfterTwo } = resolveAfter(2);
let response = null;
post.subscribe((postValue) => {
@@ -169,7 +169,7 @@ describe('Posts store pact', () => {
});
test('it returns the post', async () => {
- const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374');
+ const post = post('8f75eba5-6989-4dd3-b466-e464546ce374');
const { counter, promise: resolveAfterTwo } = resolveAfter(2);
let response = null;
post.subscribe((postValue) => {
@@ -228,7 +228,7 @@ describe('Posts store pact', () => {
});
test('it returns the error', async () => {
- const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374');
+ const post = post('8f75eba5-6989-4dd3-b466-e464546ce374');
const { counter, promise: resolveAfterTwo } = resolveAfter(2);
let response = null;
post.subscribe((postValue) => {
@@ -295,7 +295,7 @@ describe('Posts store pact', () => {
});
test('it returns the error', async () => {
- const post = getPost('8f75eba5-6989-4dd3-b466-e464546ce374');
+ const post = post('8f75eba5-6989-4dd3-b466-e464546ce374');
const { counter, promise: resolveAfterTwo } = resolveAfter(2);
let response = null;
post.subscribe((postValue) => {