Skip to content

Commit 1ea9134

Browse files
committed
text: adjust expected cache keys
1 parent 5a490d5 commit 1ea9134

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

test/cache-manager.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ describe('Cache Manager', () => {
182182
method: 'POST',
183183
body: 10,
184184
});
185-
expect(key).toContain('POST|https://api.example.com/data|same-origin||10');
185+
expect(key).toContain(
186+
'POST|https://api.example.com/data|same-origin||10',
187+
);
186188
});
187189

188190
it('should handle Array body', () => {
@@ -192,7 +194,9 @@ describe('Cache Manager', () => {
192194
method: 'POST',
193195
body: arrayBody,
194196
});
195-
expect(key).toContain('POST|https://api.example.com/data|same-origin||0:11:22:3');
197+
expect(key).toContain(
198+
'POST|https://api.example.com/data|same-origin||0:11:22:3',
199+
);
196200
});
197201

198202
it('should handle Object body and sort properties', () => {
@@ -203,7 +207,9 @@ describe('Cache Manager', () => {
203207
body: objectBody,
204208
});
205209

206-
expect(key).toContain('POST|https://api.example.com/data|same-origin||a:1b:2');
210+
expect(key).toContain(
211+
'POST|https://api.example.com/data|same-origin||a:1b:2',
212+
);
207213
});
208214
});
209215

0 commit comments

Comments
 (0)