]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/posts.test.ts
Don't remember what this WIP was about
[rbdr/forum] / src / lib / stores / posts.test.ts
index ef1835d8f1c14052e295f4855e20e84ac294fdf7..df9b57ce5b7f7f1385a77a69698ea068264c9715 100644 (file)
@@ -7,13 +7,13 @@ const { eachLike, like } = Matchers;
 
 jest.mock('$lib/config/config.ts');
 
 
 jest.mock('$lib/config/config.ts');
 
-import { getPost } from './posts';
+import { post } from './posts';
 
 const internals = {
        provider: null
 };
 
 
 const internals = {
        provider: null
 };
 
-describe('Posts store pact', () => {
+describe('post', () => {
        beforeAll(async () => {
                internals.provider = new Pact({
                        port: 1234,
        beforeAll(async () => {
                internals.provider = new Pact({
                        port: 1234,
@@ -90,7 +90,7 @@ describe('Posts store pact', () => {
                        });
 
                        test('it returns the post', async () => {
                        });
 
                        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) => {
                                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 () => {
                        });
 
                        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) => {
                                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 () => {
                        });
 
                        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) => {
                                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 () => {
                        });
 
                        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) => {
                                const { counter, promise: resolveAfterTwo } = resolveAfter(2);
                                let response = null;
                                post.subscribe((postValue) => {