Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Aug 14, 2024
1 parent 6b02f36 commit 15dac43
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/plug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,6 @@ describe('The Croct plug', () => {

await expect(croct.fetch(slotId, options)).resolves.toEqual({
content: content,
payload: content,
});

expect(fetch).toHaveBeenLastCalledWith('foo', options);
Expand Down Expand Up @@ -954,7 +953,6 @@ describe('The Croct plug', () => {

await expect(croct.fetch(slotId, options)).resolves.toEqual({
content: content,
payload: content,
});

expect(fetch).toHaveBeenLastCalledWith('foo', {
Expand Down Expand Up @@ -986,7 +984,6 @@ describe('The Croct plug', () => {

await expect(croct.fetch(slotId, options)).resolves.toEqual({
content: content,
payload: content,
});

expect(fetch).toHaveBeenLastCalledWith('foo', options);
Expand Down Expand Up @@ -1040,16 +1037,10 @@ describe('The Croct plug', () => {

await expect(croct.fetch(slotId, options)).resolves.toEqual({
content: content,
payload: content,
});

expect(eapFetch).toHaveBeenLastCalledWith('foo', options);
expect(fetch).toHaveBeenLastCalledWith('foo', options);

expect(logger.warn).toHaveBeenCalledWith(expect.stringContaining(
'Accessing the "payload" property of the fetch response is deprecated and '
+ 'will be removed in a future version. Use the "content" property instead.',
));
});

it('should fail to fetch a slot content if unplugged', () => {
Expand Down

0 comments on commit 15dac43

Please sign in to comment.