Skip to content

Commit 15dac43

Browse files
committed
Update tests
1 parent 6b02f36 commit 15dac43

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/plug.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,6 @@ describe('The Croct plug', () => {
891891

892892
await expect(croct.fetch(slotId, options)).resolves.toEqual({
893893
content: content,
894-
payload: content,
895894
});
896895

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

955954
await expect(croct.fetch(slotId, options)).resolves.toEqual({
956955
content: content,
957-
payload: content,
958956
});
959957

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

987985
await expect(croct.fetch(slotId, options)).resolves.toEqual({
988986
content: content,
989-
payload: content,
990987
});
991988

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

10411038
await expect(croct.fetch(slotId, options)).resolves.toEqual({
10421039
content: content,
1043-
payload: content,
10441040
});
10451041

10461042
expect(eapFetch).toHaveBeenLastCalledWith('foo', options);
10471043
expect(fetch).toHaveBeenLastCalledWith('foo', options);
1048-
1049-
expect(logger.warn).toHaveBeenCalledWith(expect.stringContaining(
1050-
'Accessing the "payload" property of the fetch response is deprecated and '
1051-
+ 'will be removed in a future version. Use the "content" property instead.',
1052-
));
10531044
});
10541045

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

0 commit comments

Comments
 (0)