import { resolveAfter } from '$/utils/resolve_after';
-const { eachLike, like } = Matchers;
+const { like } = Matchers;
jest.mock('$/config/config.js');
}`
)
.withVariables({
- id: 'freezer'
+ id: '8f75eba5-6989-4dd3-b466-e464546ce374'
})
.willRespondWith({
status: 200,
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) => {
}`
)
.withVariables({
- id: 'freezer'
+ id: '8f75eba5-6989-4dd3-b466-e464546ce374'
})
.willRespondWith({
status: 200,
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) => {
}`
)
.withVariables({
- id: 'freezer'
+ id: '8f75eba5-6989-4dd3-b466-e464546ce374'
})
.willRespondWith({
status: 500
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) => {