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,
});
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) => {
});
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) => {
});
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) => {
});
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) => {